tell people using prism 8.0+ to update just by pressing Update in prism

This commit is contained in:
maskers 2024-07-29 19:39:41 +03:00
parent 00991640c7
commit 7622ff7c2b

View file

@ -225,12 +225,21 @@ async fn outdated_launcher(log: &str, data: &Data) -> Result<Issue> {
|| (log_version_parts[0] == latest_version_parts[0]
&& log_version_parts[1] < latest_version_parts[1])
{
let issue = (
"Outdated Prism Launcher".to_string(),
format!("Your installed version is {log_version}, while the newest version is {latest_version}.\nPlease update; for more info see https://prismlauncher.org/download/")
);
if log_version_parts[0] < 8 {
let issue = (
"Outdated Prism Launcher".to_string(),
format!("Your installed version is {log_version}, while the newest version is {latest_version}.\nPlease update; for more info see https://prismlauncher.org/download/")
);
Ok(Some(issue))
Ok(Some(issue))
} else {
let issue = (
"Outdated Prism Launcher".to_string(),
format!("Your installed version is {log_version}, while the newest version is {latest_version}.\nPlease update by pressing the `Update` button in Prism.")
);
Ok(Some(issue))
}
} else {
Ok(None)
}