diff --git a/apps/desktop/src-tauri/src/ext.rs b/apps/desktop/src-tauri/src/ext.rs index e55624c18b..6f126d2027 100644 --- a/apps/desktop/src-tauri/src/ext.rs +++ b/apps/desktop/src-tauri/src/ext.rs @@ -38,7 +38,8 @@ impl> AppExt for T { let store = self.desktop_store()?; store .set(StoreKey::OnboardingNeeded2, v) - .map_err(|e| e.to_string()) + .map_err(|e| e.to_string())?; + store.save().map_err(|e| e.to_string()) } #[tracing::instrument(skip_all)] @@ -73,7 +74,8 @@ impl> AppExt for T { let store = self.desktop_store()?; store .set(StoreKey::OnboardingLocal, v) - .map_err(|e| e.to_string()) + .map_err(|e| e.to_string())?; + store.save().map_err(|e| e.to_string()) } #[tracing::instrument(skip_all)] diff --git a/plugins/updater2/src/ext.rs b/plugins/updater2/src/ext.rs index 6a556df17d..f7187bab27 100644 --- a/plugins/updater2/src/ext.rs +++ b/plugins/updater2/src/ext.rs @@ -121,6 +121,10 @@ impl<'a, R: tauri::Runtime, M: tauri::Manager> Updater2<'a, R, M> { .await? .ok_or(crate::Error::UpdateNotAvailable)?; + if let Ok(store) = self.manager.store2().store() { + let _ = store.save(); + } + update.install(&bytes)?; Ok(())