mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
use windowSettingsAtom (#993)
This commit is contained in:
parent
9173e51756
commit
d4f86f3a2f
@ -85,7 +85,8 @@ function handleContextMenu(e: React.MouseEvent<HTMLDivElement>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function AppSettingsUpdater() {
|
function AppSettingsUpdater() {
|
||||||
const windowSettings = useSettingsPrefixAtom("window");
|
const windowSettingsAtom = useSettingsPrefixAtom("window");
|
||||||
|
const windowSettings = jotai.useAtomValue(windowSettingsAtom);
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
const isTransparentOrBlur =
|
const isTransparentOrBlur =
|
||||||
(windowSettings?.["window:transparent"] || windowSettings?.["window:blur"]) ?? false;
|
(windowSettings?.["window:transparent"] || windowSettings?.["window:blur"]) ?? false;
|
||||||
|
Loading…
Reference in New Issue
Block a user