From 890e6fae4b57dd92bfbbb214749bc4f72bb98165 Mon Sep 17 00:00:00 2001 From: Local Dev Date: Sun, 27 Sep 2026 20:45:06 +0200 Subject: [PATCH] fix(theseus): quiet add-ons hide from the dock on a fresh profile autoHideQuietDock ran only when the sidebar state was pushed; on a fresh boot the chrome pulls it, so Shield and Cookie Pop-ups showed in the dock until something re-emitted. Run it on the pull path too. --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {