Skip to content

Commit ca544d9

Browse files
committed
enhance: close command palette popups before active page changed
Signed-off-by: leo <longshuang@msn.cn>
1 parent cceaf31 commit ca544d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ViewModels/Launcher.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public LauncherPage ActivePage
3535
{
3636
if (SetProperty(ref _activePage, value))
3737
{
38+
CancelCommandPalette();
3839
UpdateTitle();
3940

4041
if (!_ignoreIndexChange && value is { Data: Repository repo })
@@ -253,6 +254,7 @@ public void CloseTab(LauncherPage page)
253254
last.Popup = null;
254255
UpdateTitle();
255256

257+
CancelCommandPalette();
256258
GC.Collect();
257259
}
258260
else

0 commit comments

Comments
 (0)