From bc42ce870fdadb27c6b916abfdc3257d4ac9d59b Mon Sep 17 00:00:00 2001 From: Sean Boult <996134+Hacksore@users.noreply.github.com> Date: Tue, 3 Sep 2024 20:56:29 -0500 Subject: [PATCH] Good looknin2 --- apps/desktop/src-tauri/src/config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src-tauri/src/config.rs b/apps/desktop/src-tauri/src/config.rs index 73f61720..f1a2e0a9 100644 --- a/apps/desktop/src-tauri/src/config.rs +++ b/apps/desktop/src-tauri/src/config.rs @@ -41,7 +41,9 @@ pub fn create_or_get_config(app: &AppHandle) -> Store { appdir.push(CONFIG_FILE_NAME); let config_exists = (appdir.clone()).exists(); - let mut store = StoreBuilder::new(CONFIG_FILE_NAME).build(app.app_handle().clone()); + let mut store = StoreBuilder::new(CONFIG_FILE_NAME) + .serialize(|cache| serde_json::to_vec_pretty(&cache).map_err(Into::into)) + .build(app.app_handle().clone()); // if the file exists we don't want to overwrite it if config_exists {