mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 14:56:14 +00:00
Update compact mode initialization to ensure tabs toolbar is updated after a delay
This commit is contained in:
@@ -61,8 +61,12 @@
|
|||||||
await delayedStartupPromise;
|
await delayedStartupPromise;
|
||||||
await SessionStore.promiseAllWindowsRestored;
|
await SessionStore.promiseAllWindowsRestored;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
gZenUIManager.updateTabsToolbar();
|
|
||||||
gZenCompactModeManager.init();
|
gZenCompactModeManager.init();
|
||||||
|
setTimeout(() => {
|
||||||
|
// A bit of a hack to make sure the tabs toolbar is updated.
|
||||||
|
// Just in case we didn't get the right size.
|
||||||
|
gZenUIManager.updateTabsToolbar();
|
||||||
|
}, 100);
|
||||||
}, 0);
|
}, 0);
|
||||||
this.closeWatermark();
|
this.closeWatermark();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user