diff options
| author | 2026-01-14 14:02:32 +0800 | |
|---|---|---|
| committer | 2026-01-14 14:02:32 +0800 | |
| commit | 1f13026ec0f023c7762d7a9744ea5d9fbe911a53 (patch) | |
| tree | 3227663e913663e5fce0847f3c717cc3fccb61fc /src-tauri/src/core/config.rs | |
| parent | d0023c586cfe90a928f70c0d81e388b495d5ae28 (diff) | |
| parent | c61620ffd2071c9b08e0a4da3c6550a243dd534f (diff) | |
| download | DropOut-1f13026ec0f023c7762d7a9744ea5d9fbe911a53.tar.gz DropOut-1f13026ec0f023c7762d7a9744ea5d9fbe911a53.zip | |
Merge pull request #17 from HsiangNianian/feat/display-download-rate-and-progress-with-concurrency
Diffstat (limited to 'src-tauri/src/core/config.rs')
| -rw-r--r-- | src-tauri/src/core/config.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src-tauri/src/core/config.rs b/src-tauri/src/core/config.rs index 47c5306..d6d594f 100644 --- a/src-tauri/src/core/config.rs +++ b/src-tauri/src/core/config.rs @@ -5,12 +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 (1-128) } impl Default for LauncherConfig { @@ -21,6 +23,7 @@ impl Default for LauncherConfig { java_path: "java".to_string(), width: 854, height: 480, + download_threads: 32, } } } |