This commit is contained in:
Jonas Kruckenberg
2022-12-14 20:46:23 +01:00
parent 36698d1436
commit 64aed34eff
5 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -172,7 +172,7 @@ impl Store {
pub fn load<R: Runtime>(&mut self, app: &AppHandle<R>) -> Result<(), Error> {
let app_dir = app
.path_resolver()
.app_dir()
.app_data_dir()
.expect("failed to resolve app dir");
let store_path = app_dir.join(&self.path);
@@ -187,7 +187,7 @@ impl Store {
pub fn save<R: Runtime>(&self, app: &AppHandle<R>) -> Result<(), Error> {
let app_dir = app
.path_resolver()
.app_dir()
.app_data_dir()
.expect("failed to resolve app dir");
let store_path = app_dir.join(&self.path);