From bd05a98820cb81279bb4e315be0fbae21b71e56a Mon Sep 17 00:00:00 2001 From: William JCM Date: Mon, 3 Jan 2022 11:56:34 +0100 Subject: [PATCH] SaveTool: make pre-releases considered up-to-date if they're more recent than the latest stable. --- src/SaveTool/SaveTool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SaveTool/SaveTool.cpp b/src/SaveTool/SaveTool.cpp index e21a3b0..88dee79 100644 --- a/src/SaveTool/SaveTool.cpp +++ b/src/SaveTool/SaveTool.cpp @@ -418,7 +418,7 @@ void SaveTool::updateCheckEvent(SDL_Event& event) { _releaseLink = response[0]["html_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."); } else if(current_ver > latest_ver) {