SaveTool: remove testing code.

This commit is contained in:
Guillaume Jacquemin 2021-07-28 14:27:19 +02:00
parent ab124174b0
commit 512fa4088b

View file

@ -337,7 +337,7 @@ void SaveTool::updateCheckEvent(SDL_Event& event) {
} }
}; };
static const Version current_ver{"0.9.9"}; static const Version current_ver{SAVETOOL_VERSION};
Version latest_ver{response[0]["tag_name"]}; Version latest_ver{response[0]["tag_name"]};
if(latest_ver == current_ver) { if(latest_ver == current_ver) {
@ -350,7 +350,6 @@ void SaveTool::updateCheckEvent(SDL_Event& event) {
_latestVersion = Utility::formatString("{}.{}.{}", latest_ver.major, latest_ver.minor, latest_ver.patch); _latestVersion = Utility::formatString("{}.{}.{}", latest_ver.major, latest_ver.minor, latest_ver.patch);
_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"];
Utility::Debug{} << _downloadLink.c_str();
} }
else if(current_ver > latest_ver) { else if(current_ver > latest_ver) {
_queue.addToast(Toast::Type::Warning, "Your version is more recent than the latest one in the repo. How???"); _queue.addToast(Toast::Type::Warning, "Your version is more recent than the latest one in the repo. How???");