fix: wayfern auto-updates

This commit is contained in:
zhom
2026-03-09 17:46:00 +04:00
parent 3669d63ddf
commit cf79f2b172
13 changed files with 298 additions and 117 deletions
+30
View File
@@ -1712,6 +1712,16 @@ impl BrowserRunner {
}
}
// If no pending update was applied, check if a newer installed version exists
if updated_profile.version == profile.version {
if let Some(p) = self
.auto_updater
.update_profile_to_latest_installed(&app_handle, &updated_profile)
{
updated_profile = p;
}
}
self
.save_process_info(&updated_profile)
.map_err(|e| format!("Failed to update profile: {e}"))?;
@@ -2041,6 +2051,16 @@ impl BrowserRunner {
}
}
// If no pending update was applied, check if a newer installed version exists
if updated_profile.version == profile.version {
if let Some(p) = self
.auto_updater
.update_profile_to_latest_installed(&app_handle, &updated_profile)
{
updated_profile = p;
}
}
self
.save_process_info(&updated_profile)
.map_err(|e| format!("Failed to update profile: {e}"))?;
@@ -2319,6 +2339,16 @@ impl BrowserRunner {
}
}
// If no pending update was applied, check if a newer installed version exists
if updated_profile.version == profile.version {
if let Some(p) = self
.auto_updater
.update_profile_to_latest_installed(&app_handle, &updated_profile)
{
updated_profile = p;
}
}
self
.save_process_info(&updated_profile)
.map_err(|e| format!("Failed to update profile: {e}"))?;