Merge commit from fork

This commit is contained in:
Lucas Fernandes Nogueira
2026-09-19 21:00:36 -03:00
committed by GitHub
parent 690dcfd694
commit 1308bfa399
5 changed files with 41 additions and 8 deletions
-4
View File
@@ -46,7 +46,6 @@ pub(crate) async fn check<R: Runtime>(
timeout: Option<u64>,
proxy: Option<String>,
target: Option<String>,
allow_downgrades: Option<bool>,
) -> Result<Option<Metadata>> {
let mut builder = webview.updater_builder();
if let Some(headers) = headers {
@@ -64,9 +63,6 @@ pub(crate) async fn check<R: Runtime>(
if let Some(target) = target {
builder = builder.target(target);
}
if allow_downgrades.unwrap_or(false) {
builder = builder.version_comparator(|current, update| update.version != current);
}
let updater = builder.build()?;
let update = updater.check().await?;