mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-25 10:19:06 +01:00
Fix performance regression on page load regarding blur effect settings, resolves #156
This commit is contained in:
parent
cfff8f840d
commit
9139cba602
1 changed files with 8 additions and 3 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue