mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix(ui/settings): properly set selectedBackground
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
|
||||
await openDatabase();
|
||||
const data = await readAllData();
|
||||
selectedBackground = await getTheme();
|
||||
|
||||
if (!isVisible) {
|
||||
backgrounds = data;
|
||||
@@ -127,7 +128,9 @@
|
||||
});
|
||||
|
||||
$effect(() => {
|
||||
console.error(error);
|
||||
if (error) {
|
||||
console.error(error);
|
||||
}
|
||||
});
|
||||
|
||||
onMount(() => {
|
||||
@@ -139,7 +142,6 @@
|
||||
isVisible = true;
|
||||
loadBackgrounds();
|
||||
}, 100);
|
||||
selectedBackground = getTheme();
|
||||
observer.disconnect();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user