mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 23:25:30 +02:00
Fixed workspaces not showing previous tabs
This commit is contained in:
parent
12891ab238
commit
7468f6304c
2 changed files with 9 additions and 1 deletions
|
@ -131,7 +131,6 @@
|
||||||
|
|
||||||
async _refreshPinnedTabs({ init = false } = {}) {
|
async _refreshPinnedTabs({ init = false } = {}) {
|
||||||
await ZenWorkspaces.promiseSectionsInitialized;
|
await ZenWorkspaces.promiseSectionsInitialized;
|
||||||
console.log('Refreshing pinned tabs');
|
|
||||||
await this._initializePinsCache();
|
await this._initializePinsCache();
|
||||||
await this._initializePinnedTabs(init);
|
await this._initializePinnedTabs(init);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1790,6 +1790,15 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||||
|
|
||||||
// Fix ctrl+tab behavior. Note, we dont call it with "await" because we dont want to wait for it
|
// Fix ctrl+tab behavior. Note, we dont call it with "await" because we dont want to wait for it
|
||||||
this._fixCtrlTabBehavior();
|
this._fixCtrlTabBehavior();
|
||||||
|
|
||||||
|
// Bug: When updating from previous versions, we used to hide the tabs not used in the new workspace
|
||||||
|
// we now need to show them again
|
||||||
|
if (onInit) {
|
||||||
|
console.log(this.allStoredTabs);
|
||||||
|
for (const tab of this.allStoredTabs) {
|
||||||
|
gBrowser.showTab(tab);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async _fixCtrlTabBehavior() {
|
async _fixCtrlTabBehavior() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue