mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
closes #8694 - Fixed gradient not showing when restoring multiple windows, c=workspaces, t=fix
This commit is contained in:
@@ -1 +1 @@
|
||||
{type}: {message}, b=({bugId}), c={components}
|
||||
{bugId} - {message}, c={components}, t={type}
|
@@ -23,6 +23,9 @@
|
||||
) {
|
||||
return;
|
||||
}
|
||||
this.promiseInitialized = new Promise((resolve) => {
|
||||
this._resolveInitialized = resolve;
|
||||
});
|
||||
this.dragStartPosition = null;
|
||||
|
||||
ChromeUtils.defineLazyGetter(this, 'panel', () =>
|
||||
@@ -116,7 +119,8 @@
|
||||
this.initContextMenu();
|
||||
this.initPredefinedColors();
|
||||
|
||||
this._hasInitialized = true;
|
||||
this._resolveInitialized();
|
||||
delete this._resolveInitialized;
|
||||
this.onDarkModeChange(null);
|
||||
}
|
||||
|
||||
@@ -1102,7 +1106,7 @@
|
||||
let workspaceTheme = theme || workspace.theme;
|
||||
|
||||
await this.foreachWindowAsActive(async (browser) => {
|
||||
if (!browser.gZenThemePicker?._hasInitialized) {
|
||||
if (browser.closing || (await browser.gZenThemePicker?.promiseInitialized)) {
|
||||
return;
|
||||
}
|
||||
// Do not rebuild if the workspace is not the same as the current one
|
||||
|
Reference in New Issue
Block a user