diff --git a/plugins/store/src/store.rs b/plugins/store/src/store.rs index f8ba51a9..004b05b9 100644 --- a/plugins/store/src/store.rs +++ b/plugins/store/src/store.rs @@ -175,8 +175,9 @@ pub struct Store { impl Store { /// Update the store from the on-disk state - pub fn load(&mut self, app: &AppHandle) -> Result<(), Error> { - let app_dir = app + pub fn load(&mut self) -> Result<(), Error> { + let app_dir = self + .app .path() .app_data_dir() .expect("failed to resolve app dir"); @@ -191,8 +192,9 @@ impl Store { } /// Saves the store to disk - pub fn save(&self, app: &AppHandle) -> Result<(), Error> { - let app_dir = app + pub fn save(&self) -> Result<(), Error> { + let app_dir = self + .app .path() .app_data_dir() .expect("failed to resolve app dir");