mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
feat: update to alpha.11 (#555)
This commit is contained in:
committed by
GitHub
parent
d5a7c77a8d
commit
d74fc0a097
@@ -28,6 +28,6 @@
|
||||
"tslib": "2.6.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tauri-apps/api": "2.0.0-alpha.5"
|
||||
"@tauri-apps/api": "2.0.0-alpha.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -317,8 +317,8 @@ impl Builder {
|
||||
let state_path = app_dir.join(STATE_FILENAME);
|
||||
if state_path.exists() {
|
||||
Arc::new(Mutex::new(
|
||||
tauri::api::file::read_binary(state_path)
|
||||
.map_err(Error::TauriApi)
|
||||
std::fs::read(state_path)
|
||||
.map_err(Error::from)
|
||||
.and_then(|state| bincode::deserialize(&state).map_err(Into::into))
|
||||
.unwrap_or_default(),
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user