mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-21 21:24:05 +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 new_ver = &update.version;
|
||||||
let mut msg = String::new();
|
let mut msg = String::new();
|
||||||
msg.extend([
|
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?",
|
"Would you like to install it now?",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
app.dialog()
|
app.dialog()
|
||||||
.message(msg)
|
.message(msg)
|
||||||
.title("Update Available")
|
.title("Update Available")
|
||||||
.ok_button_label("Yes")
|
.ok_button_label("Install")
|
||||||
.cancel_button_label("No")
|
.cancel_button_label("Cancel")
|
||||||
.show(move |response| {
|
.show(move |response| {
|
||||||
if !response {
|
if !response {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue