mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-04-30 15:48:19 +02:00
refactor: fetch chromium versions after 200+ new builds
This commit is contained in:
@@ -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::<u32>().unwrap();
|
||||
let new_version = &update.new_version.parse::<u32>().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!(
|
||||
|
||||
Reference in New Issue
Block a user