From fc8c35808896199fc5cec1272dda9eac19004ac2 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Tue, 1 Jul 2025 05:10:59 +0400 Subject: [PATCH] refactor: fetch chromium versions after 200+ new builds --- src-tauri/src/auto_updater.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/auto_updater.rs b/src-tauri/src/auto_updater.rs index 6520614..742cd20 100644 --- a/src-tauri/src/auto_updater.rs +++ b/src-tauri/src/auto_updater.rs @@ -101,7 +101,7 @@ impl AutoUpdater { if let Some(update) = self.check_profile_update(&profile, &versions)? { // Apply chromium threshold logic if browser == "chromium" { - // For chromium, only show notifications if there are 100+ new versions + // For chromium, only show notifications if there are 200+ new versions let current_version = &profile.version.parse::().unwrap(); let new_version = &update.new_version.parse::().unwrap(); @@ -109,7 +109,7 @@ impl AutoUpdater { println!( "Current version: {current_version}, New version: {new_version}, Result: {result}" ); - if result > 100 { + if result > 200 { notifications.push(update); } else { println!(