enhance: close command palette popups before active page changed

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-10-27 17:29:54 +08:00
parent cceaf31baf
commit ca544d9763

View File

@@ -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