We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b129311 commit b5d393bCopy full SHA for b5d393b
src-tauri/src/cmd/config.rs
@@ -76,11 +76,12 @@ pub async fn save_settings_and_restart(
76
Some(settings.openlist.data_dir.as_str())
77
};
78
update_data_config(settings.openlist.port, data_dir)?;
79
- if let Ok(info) = get_openlist_core_process_status().await {
80
- if info.is_running {
81
- restart_openlist_core(state.clone()).await?;
82
- }
+ if let Ok(info) = get_openlist_core_process_status().await
+ && info.is_running
+ {
+ restart_openlist_core(state.clone()).await?;
83
}
84
+
85
Ok(true)
86
87
0 commit comments