aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src-tauri/src/core/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src-tauri/src/core/config.rs')
-rw-r--r--src-tauri/src/core/config.rs3
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 {