diff options
| author | 2026-01-14 13:44:01 +0800 | |
|---|---|---|
| committer | 2026-01-14 13:44:01 +0800 | |
| commit | df1450d565fda97e6c6dfce825abb682f567759b (patch) | |
| tree | 7bbcde6262deb9350f83e7372ab359bdb19fb63b /src-tauri/src/core/config.rs | |
| parent | 791bd84d175d8d454d8a7846dea63d57653ed7e1 (diff) | |
| download | DropOut-df1450d565fda97e6c6dfce825abb682f567759b.tar.gz DropOut-df1450d565fda97e6c6dfce825abb682f567759b.zip | |
fix: update download_threads comment to specify valid range (1-128)
Diffstat (limited to 'src-tauri/src/core/config.rs')
| -rw-r--r-- | src-tauri/src/core/config.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-tauri/src/core/config.rs b/src-tauri/src/core/config.rs index dc72dcb..d6d594f 100644 --- a/src-tauri/src/core/config.rs +++ b/src-tauri/src/core/config.rs @@ -5,13 +5,14 @@ use std::sync::Mutex; use tauri::{AppHandle, Manager}; #[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(default)] pub struct LauncherConfig { pub min_memory: u32, // in MB pub max_memory: u32, // in MB pub java_path: String, pub width: u32, pub height: u32, - pub download_threads: u32, // concurrent download threads + pub download_threads: u32, // concurrent download threads (1-128) } impl Default for LauncherConfig { |