mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-21 13:14:04 +02:00
updated message for auto updater
This commit is contained in:
parent
e2eb2ca425
commit
36470eb283
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue