mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-11 22:08:22 +00:00
Fixed closing the last tab of a workspace not opening a new tab when zen.workspaces.open-new-tab-if-last-unpinned-tab-is-closed
is set to true
This commit is contained in:
@@ -430,7 +430,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
|
||||
let tabs = gBrowser.tabs.filter(
|
||||
(t) =>
|
||||
t.getAttribute('zen-workspace-id') === workspaceID &&
|
||||
(t.getAttribute('zen-workspace-id') === workspaceID || t.hasAttribute("zen-essential")) &&
|
||||
(!shouldOpenNewTabIfLastUnpinnedTabIsClosed || !t.pinned || t.getAttribute('pending') !== 'true')
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user