From ce4f190c4cc33c5ffdae7c0d93df2232e2257179 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 14 Jan 2026 12:01:45 +0800 Subject: fix: avoid any/object process Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --- ui/src/stores/settings.svelte.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ui/src/stores/settings.svelte.ts b/ui/src/stores/settings.svelte.ts index 9bc122e..989172c 100644 --- a/ui/src/stores/settings.svelte.ts +++ b/ui/src/stores/settings.svelte.ts @@ -15,10 +15,8 @@ export class SettingsState { async loadSettings() { try { - const result = await invoke("get_settings"); - if (result && typeof result === "object") { - this.settings = result as LauncherConfig; - } + const result = await invoke("get_settings"); + this.settings = result; } catch (e) { console.error("Failed to load settings:", e); } -- cgit v1.2.3-70-g09d2