optimize<PageTabBar>: do NOT restore tabs when app exited via closing the last tab

This commit is contained in:
leo 2021-08-11 14:16:43 +08:00
parent 3f2948dd06
commit 21df028601
2 changed files with 14 additions and 13 deletions

View file

@ -22,6 +22,7 @@ namespace SourceGit.Views {
if (!restore.IsEnabled) return;
restore.Opened.Clear();
restore.Actived = null;
foreach (var tab in tabs.Tabs) {
if (tab.IsWelcomePage) continue;