fix: properly update profile after downloading broweser

This commit is contained in:
zhom
2025-09-03 20:49:26 +04:00
parent d4a7c347b6
commit 701c8aefd3
2 changed files with 137 additions and 43 deletions
+5 -4
View File
@@ -321,10 +321,11 @@ impl AutoUpdater {
// Check if this is an update (newer version)
if self.is_version_newer(new_version, &profile.version) {
// Update the profile version
match self
.profile_manager
.update_profile_version(app_handle, &profile.name, new_version)
{
match self.profile_manager.update_profile_version(
app_handle,
&profile.id.to_string(),
new_version,
) {
Ok(_) => {
updated_profiles.push(profile.name);
}