SaveTool: make pre-releases considered up-to-date if they're more recent than the latest stable.

This commit is contained in:
Guillaume Jacquemin 2022-01-03 11:56:34 +01:00
parent 7059295cb3
commit bd05a98820

View file

@ -418,7 +418,7 @@ void SaveTool::updateCheckEvent(SDL_Event& event) {
_releaseLink = response[0]["html_url"]; _releaseLink = response[0]["html_url"];
_downloadLink = response[0]["assets"][0]["browser_download_url"]; _downloadLink = response[0]["assets"][0]["browser_download_url"];
} }
else if(latest_ver == current_ver) { else if(latest_ver == current_ver || (current_ver > latest_ver && Utility::String::endsWith(SAVETOOL_VERSION, "-pre"))) {
_queue.addToast(Toast::Type::Success, "The application is already up to date."); _queue.addToast(Toast::Type::Success, "The application is already up to date.");
} }
else if(current_ver > latest_ver) { else if(current_ver > latest_ver) {