updated message for auto updater

This commit is contained in:
PandaDEV 2024-07-30 15:08:45 +02:00 committed by GitHub
parent e2eb2ca425
commit 36470eb283
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,15 +15,15 @@ pub async fn check_for_updates(app: AppHandle) {
let new_ver = &update.version;
let mut msg = String::new();
msg.extend([
&format!("New Version: {new_ver}\nCurrent Version: {cur_ver}\n\n"),
&format!("{cur_ver} -> {new_ver}\n\n"),
"Would you like to install it now?",
]);
app.dialog()
.message(msg)
.title("Update Available")
.ok_button_label("Yes")
.cancel_button_label("No")
.ok_button_label("Install")
.cancel_button_label("Cancel")
.show(move |response| {
if !response {
return;
@ -43,4 +43,4 @@ pub async fn check_for_updates(app: AppHandle) {
println!("Failed to check for updates: {:?}", e);
}
}
}
}