fix(startup): restore keychain consent barrier

This commit is contained in:
NimBold
2026-07-15 21:09:45 +03:30
parent 6e6ae51395
commit d2479f52be
7 changed files with 67 additions and 20 deletions
+3 -2
View File
@@ -698,7 +698,7 @@ function App() {
}, []);
useEffect(() => {
if (!coreReady || !autoAddClipboardLinks) return;
if (!coreReady || showKeychainModal || !autoAddClipboardLinks) return;
let active = true;
let wasForeground = false;
@@ -725,6 +725,7 @@ function App() {
// read was pending. Let that newer Add-modal request win unchanged.
if (
!currentSettings.autoAddClipboardLinks ||
currentSettings.showKeychainModal ||
currentStore.pendingAddRequestVersion !== requestVersionBeforeRead
) {
return;
@@ -772,7 +773,7 @@ function App() {
window.removeEventListener('blur', handleForegroundChange);
document.removeEventListener('visibilitychange', handleForegroundChange);
};
}, [autoAddClipboardLinks, coreReady]);
}, [autoAddClipboardLinks, coreReady, showKeychainModal]);
useEffect(() => {
const root = window.document.documentElement;