Use store instead of store_builder in example

This commit is contained in:
Tony committed 2024-10-03 20:49:33 +08:00
1 parent f6a72ee2cb
commit 7723f48f39
2 files changed
+3 -3

No files matched your search

@@ -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.handle().store_builder("settings.json").build().unwrap();
let store = app.store("settings.json");
app.listen("store://change", |event| {
dbg!(event);
});