1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: Update prompt displaying even on current version

This commit is contained in:
WerWolv 2021-09-22 12:57:40 +02:00
parent 509795e6c1
commit 1b7a1852bc

View File

@ -51,7 +51,8 @@ namespace hex::init {
if (!releases.body.contains("tag_name") || !releases.body["tag_name"].is_string())
return false;
auto currVersion = "v" + std::string(IMHEX_VERSION).substr(0, 5);
auto versionString = std::string(IMHEX_VERSION);
auto currVersion = "v" + versionString.substr(0, versionString.find_first_of('-'));
auto latestVersion = releases.body["tag_name"].get<std::string_view>();
if (latestVersion != currVersion)