feat: keep rust click-through cache synced with UI toggle
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
|||||||
applyAlwaysOnTop,
|
applyAlwaysOnTop,
|
||||||
applyClickThrough,
|
applyClickThrough,
|
||||||
applyOpacity,
|
applyOpacity,
|
||||||
|
syncClickThroughCache,
|
||||||
} from "../lib/overlay";
|
} from "../lib/overlay";
|
||||||
|
|
||||||
/** Pushes Zustand changes to the overlay window in real time. No-op when overlay is closed. */
|
/** Pushes Zustand changes to the overlay window in real time. No-op when overlay is closed. */
|
||||||
@@ -30,5 +31,6 @@ export function useLiveOverlayWiring(): void {
|
|||||||
if (lastAppliedClickThrough.current === clickThrough) return;
|
if (lastAppliedClickThrough.current === clickThrough) return;
|
||||||
lastAppliedClickThrough.current = clickThrough;
|
lastAppliedClickThrough.current = clickThrough;
|
||||||
void applyClickThrough(clickThrough);
|
void applyClickThrough(clickThrough);
|
||||||
|
void syncClickThroughCache(clickThrough);
|
||||||
}, [clickThrough, isOpen]);
|
}, [clickThrough, isOpen]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user