diff --git a/src-tauri/src/config.rs b/src-tauri/src/config.rs index acefae5483..798326a1e6 100644 --- a/src-tauri/src/config.rs +++ b/src-tauri/src/config.rs @@ -176,7 +176,7 @@ pub fn set(key: &str, value: T) { let state = APP.get().unwrap().state::(); let mut store = state.0.lock().unwrap(); store.insert(key.to_string(), json!(value)).unwrap(); - store.save().unwrap(); + store.save().inspect_err(|e| eprintln!("Save config failed: {e}")); } pub fn is_first_run() -> bool {