mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-05 22:48:48 +00:00
use windowSettingsAtom (#993)
This commit is contained in:
parent
9173e51756
commit
d4f86f3a2f
1 changed files with 2 additions and 1 deletions
|
|
@ -85,7 +85,8 @@ function handleContextMenu(e: React.MouseEvent<HTMLDivElement>) {
|
|||
}
|
||||
|
||||
function AppSettingsUpdater() {
|
||||
const windowSettings = useSettingsPrefixAtom("window");
|
||||
const windowSettingsAtom = useSettingsPrefixAtom("window");
|
||||
const windowSettings = jotai.useAtomValue(windowSettingsAtom);
|
||||
React.useEffect(() => {
|
||||
const isTransparentOrBlur =
|
||||
(windowSettings?.["window:transparent"] || windowSettings?.["window:blur"]) ?? false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue