diff options
Diffstat (limited to 'ui/src')
| -rw-r--r-- | ui/src/components/SettingsView.svelte | 23 | ||||
| -rw-r--r-- | ui/src/stores/settings.svelte.ts | 1 | ||||
| -rw-r--r-- | ui/src/types/index.ts | 1 |
3 files changed, 25 insertions, 0 deletions
diff --git a/ui/src/components/SettingsView.svelte b/ui/src/components/SettingsView.svelte index 9f260c1..fc4fe46 100644 --- a/ui/src/components/SettingsView.svelte +++ b/ui/src/components/SettingsView.svelte @@ -117,6 +117,29 @@ </div> </div> + <!-- Download Settings --> + <div class="bg-zinc-800/50 p-6 rounded-lg border border-zinc-700"> + <h3 + class="block text-sm font-bold text-zinc-400 mb-4 uppercase tracking-wide" + >Download Settings</h3> + <div> + <label for="download-threads" class="block text-xs text-zinc-500 mb-1" + >Concurrent Download Threads</label + > + <input + id="download-threads" + bind:value={settingsState.settings.download_threads} + type="number" + min="1" + max="128" + class="bg-zinc-950 text-white w-full p-3 rounded border border-zinc-700 focus:border-indigo-500 outline-none" + /> + <p class="text-xs text-zinc-500 mt-2"> + Number of files to download simultaneously. Higher values can speed up downloads but may consume more bandwidth. Recommended: 16-64 + </p> + </div> + </div> + <div class="pt-4"> <button onclick={() => settingsState.saveSettings()} diff --git a/ui/src/stores/settings.svelte.ts b/ui/src/stores/settings.svelte.ts index 989172c..397b9a6 100644 --- a/ui/src/stores/settings.svelte.ts +++ b/ui/src/stores/settings.svelte.ts @@ -9,6 +9,7 @@ export class SettingsState { java_path: "java", width: 854, height: 480, + download_threads: 32, }); javaInstallations = $state<JavaInstallation[]>([]); isDetectingJava = $state(false); diff --git a/ui/src/types/index.ts b/ui/src/types/index.ts index b7ff0a0..1f83585 100644 --- a/ui/src/types/index.ts +++ b/ui/src/types/index.ts @@ -29,6 +29,7 @@ export interface LauncherConfig { java_path: string; width: number; height: number; + download_threads: number; } export interface JavaInstallation { |