1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-10 04:25:31 +02:00

Enhance tab management by tracking removal of tabs initiated by the startup page

This commit is contained in:
mr. M 2025-02-23 13:48:57 +01:00
parent 4352051c6e
commit c4480f208f
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
2 changed files with 24 additions and 15 deletions

View file

@ -614,6 +614,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
currentTab.hasAttribute('zen-empty-tab')
) {
this.selectEmptyTab();
this._removedByStartupPage = true;
gBrowser.removeTab(currentTab);
showed = true;
}
@ -638,7 +639,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
}
handleTabBeforeClose(tab) {
if (!this.workspaceEnabled || this.__contextIsDelete) {
if (!this.workspaceEnabled || this.__contextIsDelete || this._removedByStartupPage) {
return null;
}