SaveTool: fix another bug in the updater.
This commit is contained in:
parent
bf3288772e
commit
63a8cf7075
1 changed files with 2 additions and 2 deletions
|
@ -358,8 +358,8 @@ void SaveTool::updateCheckEvent(SDL_Event& event) {
|
||||||
std::chrono::milliseconds{5000});
|
std::chrono::milliseconds{5000});
|
||||||
_updateAvailable = true;
|
_updateAvailable = true;
|
||||||
_latestVersion = latest_ver;
|
_latestVersion = latest_ver;
|
||||||
_releaseLink = to_string(release["html_url"]);
|
_releaseLink = release["html_url"].get<std::string>().c_str();
|
||||||
_downloadLink = to_string(release["assets"][0]["browser_download_url"]);
|
_downloadLink = release["assets"][0]["browser_download_url"].get<std::string>().c_str();
|
||||||
}
|
}
|
||||||
else if(latest_ver == current_ver || (current_ver > latest_ver && Utility::String::endsWith(SAVETOOL_VERSION, "-pre"))) {
|
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."_s);
|
_queue.addToast(Toast::Type::Success, "The application is already up to date."_s);
|
||||||
|
|
Loading…
Reference in a new issue