mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-07 18:36:36 +00:00
Fixed removing workspaces deleting the empty tab as well
This commit is contained in:
@@ -1405,15 +1405,16 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_deleteAllTabsInWorkspace(workspaceID) {
|
_deleteAllTabsInWorkspace(workspaceID) {
|
||||||
for (let tab of this.allStoredTabs) {
|
gBrowser.removeTabs(
|
||||||
if (tab.getAttribute('zen-workspace-id') === workspaceID) {
|
Array.from(gBrowser.tabs).filter(
|
||||||
gBrowser.removeTab(tab, {
|
(tab) => tab.getAttribute('zen-workspace-id') === workspaceID && !tab.hasAttribute('zen-empty-tab')
|
||||||
animate: false,
|
),
|
||||||
skipSessionStore: true,
|
{
|
||||||
closeWindowWithLastTab: false,
|
animate: false,
|
||||||
});
|
skipSessionStore: true,
|
||||||
|
closeWindowWithLastTab: false,
|
||||||
}
|
}
|
||||||
}
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
moveTabToWorkspace(tab, workspaceID) {
|
moveTabToWorkspace(tab, workspaceID) {
|
||||||
|
Reference in New Issue
Block a user