Update compact mode initialization to ensure tabs toolbar is updated after a delay

This commit is contained in:
mr. m
2025-04-11 17:02:02 +02:00
parent 9cf4dbd710
commit a6b8843c5c

View File

@@ -61,8 +61,12 @@
await delayedStartupPromise;
await SessionStore.promiseAllWindowsRestored;
setTimeout(() => {
gZenUIManager.updateTabsToolbar();
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);
this.closeWatermark();
});