mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 10:22:13 +08:00
enhance: close command palette popups before active page changed
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -35,6 +35,7 @@ namespace SourceGit.ViewModels
|
||||
{
|
||||
if (SetProperty(ref _activePage, value))
|
||||
{
|
||||
CancelCommandPalette();
|
||||
UpdateTitle();
|
||||
|
||||
if (!_ignoreIndexChange && value is { Data: Repository repo })
|
||||
@@ -253,6 +254,7 @@ namespace SourceGit.ViewModels
|
||||
last.Popup = null;
|
||||
UpdateTitle();
|
||||
|
||||
CancelCommandPalette();
|
||||
GC.Collect();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user