From 4de8990b5c2c9e2642c20ded9ed4b9c65451257d Mon Sep 17 00:00:00 2001 From: WerWolv <werwolv98@gmail.com> Date: Mon, 24 May 2021 23:34:17 +0200 Subject: [PATCH] fix: Update prompt button not appearing properly --- source/init/tasks.cpp | 2 +- source/window.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/source/init/tasks.cpp b/source/init/tasks.cpp index bf65648fc..0fc2f3125 100644 --- a/source/init/tasks.cpp +++ b/source/init/tasks.cpp @@ -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; diff --git a/source/window.cpp b/source/window.cpp index 2c118045a..d28d1f2df 100644 --- a/source/window.cpp +++ b/source/window.cpp @@ -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();