mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-07-25 05:40:50 +02:00
refactor: bump chromium version requirement
This commit is contained in:
@@ -99,7 +99,7 @@ impl AutoUpdater {
|
|||||||
if let Some(update) = self.check_profile_update(&profile, &versions)? {
|
if let Some(update) = self.check_profile_update(&profile, &versions)? {
|
||||||
// Apply chromium threshold logic
|
// Apply chromium threshold logic
|
||||||
if browser == "chromium" {
|
if browser == "chromium" {
|
||||||
// For chromium, only show notifications if there are 200+ new versions
|
// For chromium, only show notifications if there are 400+ new versions
|
||||||
let current_version = &profile.version.parse::<u32>().unwrap();
|
let current_version = &profile.version.parse::<u32>().unwrap();
|
||||||
let new_version = &update.new_version.parse::<u32>().unwrap();
|
let new_version = &update.new_version.parse::<u32>().unwrap();
|
||||||
|
|
||||||
@@ -107,11 +107,11 @@ impl AutoUpdater {
|
|||||||
println!(
|
println!(
|
||||||
"Current version: {current_version}, New version: {new_version}, Result: {result}"
|
"Current version: {current_version}, New version: {new_version}, Result: {result}"
|
||||||
);
|
);
|
||||||
if result > 200 {
|
if result > 400 {
|
||||||
notifications.push(update);
|
notifications.push(update);
|
||||||
} else {
|
} else {
|
||||||
println!(
|
println!(
|
||||||
"Skipping chromium update notification: only {result} new versions (need 50+)"
|
"Skipping chromium update notification: only {result} new versions (need 400+)"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user