Skip to content

Commit

Permalink
Good looknin2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Sep 4, 2024
1 parent 4037d8e commit bc42ce8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/desktop/src-tauri/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ pub fn create_or_get_config(app: &AppHandle) -> Store<Wry> {
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 {
Expand Down

0 comments on commit bc42ce8

Please sign in to comment.