Enhance UI styles and functionality for gradient generator, vertical tabs, and URL bar; improve tab management logic

This commit is contained in:
mr. M
2025-02-21 11:32:48 +01:00
parent a90c6c445c
commit 6771b137ea
8 changed files with 49 additions and 25 deletions

View File

@@ -79,15 +79,14 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
);
ChromeUtils.defineLazyGetter(this, 'tabContainer', () => document.getElementById('tabbrowser-tabs'));
this._activeWorkspace = Services.prefs.getStringPref('zen.workspaces.active', '');
}
async afterLoadInit() {
await SessionStore.promiseInitialized;
if (!this._hasInitializedTabsStrip) {
await this.delayedStartup();
}
}
async afterLoadInit() {
await this.promiseSectionsInitialized;
await SessionStore.promiseAllWindowsRestored;
console.info('ZenWorkspaces: ZenWorkspaces initialized');
await this.initializeWorkspaces();
@@ -2205,6 +2204,10 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
for (const tab of container.children) {
if (tab.tagName === 'tab' || tab.tagName == 'tab-group') {
tabs.push(tab);
const glance = tab.querySelector('.tabbrowser-tab[glance-id]');
if (glance) {
tabs.push(glance);
}
}
}
}