1
0
mirror of synced 2025-01-31 03:53:44 +01:00

fix: Update prompt button not appearing properly

This commit is contained in:
WerWolv 2021-05-24 23:34:17 +02:00
parent 0717d4a1b4
commit 4de8990b5c
2 changed files with 1 additions and 3 deletions

View File

@ -32,7 +32,7 @@ namespace hex::init {
auto releases = net.getJson("https://api.github.com/repos/WerWolv/ImHex/releases/latest");
if (releases.code != 200)
return false;
return false;
if (!releases.response.contains("tag_name") || !releases.response["tag_name"].is_string())
return false;

View File

@ -57,7 +57,6 @@ namespace hex {
Window::Window() {
SharedData::currentProvider = nullptr;
#if !defined(RELEASE)
{
for (const auto &[argument, value] : init::getInitArguments()) {
if (argument == "update-available") {
@ -67,7 +66,6 @@ namespace hex {
}
}
}
#endif
this->initGLFW();
this->initImGui();