1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-20 00:46:34 +00:00

Add dialog_ok if the user declines the update (#609)

* Add dialog_ok if the user declines the update

* Remove linebreak which doesn't actually appear on console (?)

* rustfmt
This commit is contained in:
asimon-1 2023-08-23 18:48:21 -04:00 committed by GitHub
parent 1c00d2afe9
commit 8711ce6ca0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -208,6 +208,12 @@ pub fn perform_version_check() {
}
} else {
info!("User declined the update.");
dialog::dialog_ok(
"This update has been declined.\n\n\
If you'd like to disable update checking in the future,\
please adjust the 'Auto-Update' setting in the Modpack menu."
.to_string(),
);
}
}
Err(e) => {