mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
Fix performance regression on page load regarding blur effect settings, resolves #156
This commit is contained in:
parent
cfff8f840d
commit
9139cba602
@ -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 New Issue
Block a user