settings page

This commit is contained in:
jfmonty2 committed 2023-04-25 22:10:28 -07:00
1 parent 6f9cd6b471
commit 35271049dd
16 files changed
+210 -90

No files matched your search

+7
View File
@@ -67,3 +67,10 @@ pub fn get_config(app_state: State<'_, AppState>) -> AppConfig {
let config = app_state.config.read().unwrap();
config.clone()
}
#[tauri::command]
pub fn save_config(config: AppConfig, app_state: State<'_, AppState>) {
let mut prev_config = app_state.config.write().unwrap();
*prev_config = config;
}