1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-09 00:35:31 +02: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:
mr. M 2025-01-11 14:35:57 +01:00
parent a5d1537b75
commit e01af2fe97
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB

View file

@ -430,7 +430,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
let tabs = gBrowser.tabs.filter( let tabs = gBrowser.tabs.filter(
(t) => (t) =>
t.getAttribute('zen-workspace-id') === workspaceID && (t.getAttribute('zen-workspace-id') === workspaceID || t.hasAttribute("zen-essential")) &&
(!shouldOpenNewTabIfLastUnpinnedTabIsClosed || !t.pinned || t.getAttribute('pending') !== 'true') (!shouldOpenNewTabIfLastUnpinnedTabIsClosed || !t.pinned || t.getAttribute('pending') !== 'true')
); );