fix(settings): don't close Settings when clicking the busy overlay

The full-screen #busyOverlay (shown during sync/backup) sits outside
#settingsPanel, so a mousedown on it fired the click-outside handler and
closed Settings mid-sync. Exempted #busyOverlay like .modal/.toast already are.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
r-zakarya
2026-07-09 23:08:06 +01:00
parent 9b0c26846a
commit 8206db5e44
+1
View File
@@ -8602,6 +8602,7 @@ async function init() {
if (e.target.closest('.modal')) return; if (e.target.closest('.modal')) return;
if (e.target.closest('.cmd-palette')) return; if (e.target.closest('.cmd-palette')) return;
if (e.target.closest('.toast')) return; if (e.target.closest('.toast')) return;
if (e.target.closest('#busyOverlay')) return; // sync/backup spinner
closeSettings(); closeSettings();
}); });