Return result in resolve_store_path

This commit is contained in:
Tony
2024-10-10 15:53:32 +08:00
parent c3748b39fe
commit d88fcb5c8a
4 changed files with 20 additions and 46 deletions
@@ -17,7 +17,7 @@ fn main() {
.plugin(tauri_plugin_store::Builder::new().build())
.setup(|app| {
// Init store and load it from disk
let store = app.store("settings.json");
let store = app.store("settings.json")?;
app.listen("store://change", |event| {
dbg!(event);
});