tell people using prism 8.0+ to update just by pressing Update
in prism
This commit is contained in:
parent
00991640c7
commit
7622ff7c2b
1 changed files with 14 additions and 5 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue