diff --git a/main.js b/main.js index 326c4f5b..99f134ba 100644 --- a/main.js +++ b/main.js @@ -2606,6 +2606,9 @@ function toggleSidebar() { setSidebar(!sidebarVisible); } // Everything the chrome needs to draw the extension dock + plug-in row: // panels, toolbar menus, which panel is open, and the user's dock prefs. function sidebarStatePayload() { + // Runs on the pull path too (the chrome asks at boot), not only on pushes — + // a fresh profile otherwise showed the quiet add-ons until something re-emitted. + try { autoHideQuietDock(); } catch {} return { visible: sidebarVisible, active: sidebarActivePanelId, @@ -2635,7 +2638,6 @@ function autoHideQuietDock() { if (changed) { settings.dockHidden = [...hidden]; settings.dockAutoHidden = [...seen]; saveSettings(); } } function emitSidebarState() { - try { autoHideQuietDock(); } catch {} try { chrome?.webContents.send("sidebar-state", sidebarStatePayload()); } catch {} } function setSidebar(show, panelId) {