From 02520ca62ac5e508e8748b2445171be64f459b6c Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Sun, 18 Jan 2026 13:34:52 +0800 Subject: fix(ci): improve pre-commit fmt hook configuration - Add pass_filenames: false to fmt hook - Add -- separator for cargo fmt args - Manually format code with cargo fmt --- ui/src/components/SettingsView.svelte | 121 ++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) (limited to 'ui/src/components/SettingsView.svelte') diff --git a/ui/src/components/SettingsView.svelte b/ui/src/components/SettingsView.svelte index 4de18b3..0e89e25 100644 --- a/ui/src/components/SettingsView.svelte +++ b/ui/src/components/SettingsView.svelte @@ -123,6 +123,15 @@ settingsState.settings.custom_background_path = undefined; settingsState.saveSettings(); } + + async function runMigrationToSharedCaches() { + try { + await (await import("@tauri-apps/api/core")).invoke("migrate_shared_caches"); + settingsState.loadSettings(); + } catch (e) { + console.error("Migration failed:", e); + } + }
@@ -398,6 +407,118 @@
+ +
+

Storage & Version Caches

+
+
+
+

Use Shared Caches

+

Store versions/libraries/assets in a global cache shared by all instances.

+
+ +
+ +
+
+

Keep Legacy Per-Instance Storage

+

Do not migrate existing instance caches; keep current layout.

+
+ +
+ +
+
+

Run Migration

+

Hard-link or copy existing per-instance caches into the shared cache.

+
+ +
+
+
+ + +
+

Feature Flags (Launcher Arguments)

+
+
+
+

Demo User

+

Enable demo-related arguments when rules require them.

+
+ +
+ +
+
+

Quick Play

+

Enable quick play singleplayer/multiplayer arguments.

+
+ +
+ + {#if settingsState.settings.feature_flags.quick_play_enabled} +
+
+ + +
+
+
+

Prefer Singleplayer

+

If enabled, use singleplayer quick play path.

+
+ +
+
+ + +
+
+ {/if} +
+
+

-- cgit v1.2.3-70-g09d2