Skip to content

Commit 33de0fe

Browse files
committed
enhance: clean up popup before closing tab
Signed-off-by: leo <[email protected]>
1 parent c134337 commit 33de0fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ViewModels/Launcher.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ public void CloseTab(LauncherPage page)
265265
Welcome.Instance.ClearSearchFilter();
266266
last.Node = new RepositoryNode() { Id = Guid.NewGuid().ToString() };
267267
last.Data = Welcome.Instance;
268+
last.Popup?.Cleanup();
268269
last.Popup = null;
269270
UpdateTitle();
270271

@@ -459,6 +460,8 @@ private void CloseRepositoryInTab(LauncherPage page, bool removeFromWorkspace =
459460
repo.Close();
460461
}
461462

463+
page.Popup?.Cleanup();
464+
page.Popup = null;
462465
page.Data = null;
463466
}
464467

0 commit comments

Comments
 (0)