mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-30 13:51:53 +08:00
enhance: cleanup popup before cancel
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -126,10 +126,10 @@ namespace SourceGit.ViewModels
|
||||
|
||||
public void CancelPopup()
|
||||
{
|
||||
if (_popup == null)
|
||||
return;
|
||||
if (_popup.InProgress)
|
||||
if (_popup == null || _popup.InProgress)
|
||||
return;
|
||||
|
||||
_popup?.Cleanup();
|
||||
Popup = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user