mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 05:09:57 +02:00
Fix: Create new tab when closing last unpinned tab.
This commit is contained in:
parent
d853fa8de4
commit
410264c9c6
2 changed files with 25 additions and 9 deletions
|
@ -184,7 +184,14 @@
|
|||
filter: tab => !tab.hidden && !tab.pinned,
|
||||
});
|
||||
|
||||
const nextTab = findNextTab(1) || findNextTab(-1);
|
||||
let nextTab = findNextTab(1) || findNextTab(-1);
|
||||
|
||||
if (!nextTab) {
|
||||
ZenWorkspaces._createNewTabForWorkspace({ uuid: ZenWorkspaces.activeWorkspace });
|
||||
|
||||
nextTab = findNextTab(1) || findNextTab(-1);
|
||||
}
|
||||
|
||||
if (nextTab) {
|
||||
gBrowser.selectedTab = nextTab;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue