Don't make StoreState public

This commit is contained in:
Tony
2024-10-15 22:52:11 +08:00
parent 5f2de5e4ea
commit 985059a1f0
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ fn main() {
.plugin(tauri_plugin_store::Builder::default().build())
.setup(|app| {
// This loads the store from disk
let store = app.store("app_data.json");
let store = app.store("app_data.json")?;
// Note that values must be serde_json::Value instances,
// otherwise, they will not be compatible with the JavaScript bindings.