diff --git a/plugins/store/src/lib.rs b/plugins/store/src/lib.rs index 7480d12f..8687f0ba 100644 --- a/plugins/store/src/lib.rs +++ b/plugins/store/src/lib.rs @@ -69,7 +69,7 @@ async fn set( key: String, value: JsonValue, ) -> Result<(), Error> { - with_store(app, stores, path, |store| store.set(key, value)) + with_store(app, stores, path, |store| store.insert(key, value)) } #[tauri::command] diff --git a/plugins/store/src/store.rs b/plugins/store/src/store.rs index 2c7b43a9..7c6c922e 100644 --- a/plugins/store/src/store.rs +++ b/plugins/store/src/store.rs @@ -206,7 +206,7 @@ impl Store { Ok(()) } - pub fn set(&mut self, key: String, value: JsonValue) -> Result<(), Error> { + pub fn insert(&mut self, key: String, value: JsonValue) -> Result<(), Error> { self.cache.insert(key.clone(), value.clone()); self.app.emit_all( "store://change",