From 4ccd9630375689f21228b998543cd462652c10a0 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 21 May 2021 23:53:16 +0200 Subject: [PATCH] ui: Properly display git info in help menu in release builds again This fixes #233 --- source/views/view_help.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/views/view_help.cpp b/source/views/view_help.cpp index bcc86c0ec..1efeb6688 100644 --- a/source/views/view_help.cpp +++ b/source/views/view_help.cpp @@ -31,7 +31,7 @@ namespace hex { void ViewHelp::drawAboutPopup() { if (ImGui::BeginPopupModal(View::toWindowName("hex.view.about.name").c_str(), &this->m_aboutWindowOpen, ImGuiWindowFlags_AlwaysAutoResize)) { ImGui::Text("ImHex Hex Editor v%s by WerWolv - " ICON_FA_CODE_BRANCH, IMHEX_VERSION); - #if defined(DEBUG) && defined(GIT_BRANCH) && defined(GIT_COMMIT_HASH) + #if defined(GIT_BRANCH) && defined(GIT_COMMIT_HASH) ImGui::SameLine(); if (ImGui::Hyperlink(hex::format("{0}@{1}", GIT_BRANCH, GIT_COMMIT_HASH).c_str())) hex::openWebpage("https://github.com/WerWolv/ImHex/commit/" GIT_COMMIT_HASH);