diff options
| author | 2026-01-14 03:46:48 +0000 | |
|---|---|---|
| committer | 2026-01-14 03:46:48 +0000 | |
| commit | caeec0304d0f6c592b6ce24d8c6c932eea6a5225 (patch) | |
| tree | 960709f4ca1a66ed40a1c4b32f7b4d40d596fc54 /ui/src/stores/settings.svelte.ts | |
| parent | 64b939e6ac0b196d18ee183a37a40b0bf7927a80 (diff) | |
| download | DropOut-caeec0304d0f6c592b6ce24d8c6c932eea6a5225.tar.gz DropOut-caeec0304d0f6c592b6ce24d8c6c932eea6a5225.zip | |
chore: improve loadSettings method for better result handling
Diffstat (limited to 'ui/src/stores/settings.svelte.ts')
| -rw-r--r-- | ui/src/stores/settings.svelte.ts | 5 |
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); } |