aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorNatsuu <natsukawa247@outlook.com>2026-01-14 03:46:48 +0000
committerNatsuu <natsukawa247@outlook.com>2026-01-14 03:46:48 +0000
commitcaeec0304d0f6c592b6ce24d8c6c932eea6a5225 (patch)
tree960709f4ca1a66ed40a1c4b32f7b4d40d596fc54 /ui
parent64b939e6ac0b196d18ee183a37a40b0bf7927a80 (diff)
downloadDropOut-caeec0304d0f6c592b6ce24d8c6c932eea6a5225.tar.gz
DropOut-caeec0304d0f6c592b6ce24d8c6c932eea6a5225.zip
chore: improve loadSettings method for better result handling
Diffstat (limited to 'ui')
-rw-r--r--ui/src/stores/settings.svelte.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/src/stores/settings.svelte.ts b/ui/src/stores/settings.svelte.ts
index a1f687c..9bc122e 100644
--- a/ui/src/stores/settings.svelte.ts
+++ b/ui/src/stores/settings.svelte.ts
@@ -15,7 +15,10 @@ export class SettingsState {
async loadSettings() {
try {
- this.settings = await invoke("get_settings");
+ const result = await invoke("get_settings");
+ if (result && typeof result === "object") {
+ this.settings = result as LauncherConfig;
+ }
} catch (e) {
console.error("Failed to load settings:", e);
}