Fixed session restore identifying the empty tab as a normal one

This commit is contained in:
mr. m
2025-03-07 11:54:57 +01:00
parent 00533fb956
commit 3325dc0d9f
6 changed files with 60 additions and 32 deletions

View File

@@ -626,7 +626,8 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
if (
(currentTab.isEmpty &&
(currentTab.getAttribute('image') === gPageIcons[currentTabURL] || !currentTab.hasAttribute('image'))) ||
currentTab.hasAttribute('zen-empty-tab')
currentTab.hasAttribute('zen-empty-tab') ||
currentTab._possibleEmptyTab
) {
this.selectEmptyTab();
this._removedByStartupPage = true;