Fix performance regression on page load regarding blur effect settings, resolves #156

This commit is contained in:
Laura Hausmann 2023-08-30 14:42:37 +02:00
parent cfff8f840d
commit 9139cba602
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -376,13 +376,18 @@ function checkForSplash() {
"--modalBgFilter",
v ? "blur(4px)" : "none",
);
const theme = defaultStore.state.darkMode ? ColdDeviceStorage.get("darkTheme") : ColdDeviceStorage.get("lightTheme");
applyTheme(theme);
},
{ immediate: true },
);
watch(
defaultStore.reactiveState.useBlurEffect,
() => {
const theme = defaultStore.state.darkMode ? ColdDeviceStorage.get("darkTheme") : ColdDeviceStorage.get("lightTheme");
applyTheme(theme);
}
);
let reloadDialogShowing = false;
stream.on("_disconnected_", async () => {
if (defaultStore.state.serverDisconnectedBehavior === "reload") {