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