1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-20 00:46:34 +00:00
This commit is contained in:
GradualSyrup 2023-09-21 12:43:30 -05:00
commit 7e6267817e
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "training_modpack"
version = "6.0.0"
version = "6.0.1"
authors = ["jugeeya <jugeeya@live.com>"]
edition = "2018"

View file

@ -71,7 +71,7 @@ impl Release {
//
// https://datatracker.ietf.org/doc/html/rfc3339#section-5.1
let current_version = CURRENT_VERSION.lock();
self.published_at.as_str() < current_version.as_str()
self.published_at.as_str() <= current_version.as_str()
}
}
@ -152,7 +152,7 @@ fn get_release(beta: bool) -> Result<Release> {
}
fn user_wants_to_install() -> bool {
dialog::yes_no(
dialog::no_yes(
"There is a new update available for the Training Modpack. \n\n\
Do you want to install it?"
.to_string(),
@ -193,7 +193,7 @@ pub fn perform_version_check() {
drop(current_version); // Explicitly unlock, since we also acquire a lock in is_older_than_installed()
if release_to_apply.as_ref().unwrap().is_older_than_installed() {
release_to_apply = Err(anyhow!(
"Update is older than the current installed version.",
"Github version is not newer than the current installed version.",
))
}
}