mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-06 19:38:24 +00:00
Fixed workspaces not showing previous tabs
This commit is contained in:
@@ -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() {
|
||||||
|
Reference in New Issue
Block a user