Added current commit hash and branch to about page

This commit is contained in:
WerWolv
2020-12-21 12:38:50 +01:00
parent 2c1759ce0a
commit 7c350dde90
2 changed files with 23 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ namespace hex {
void ViewHelp::drawAboutPopup() {
if (ImGui::BeginPopupModal("About", &this->m_aboutWindowOpen, ImGuiWindowFlags_AlwaysAutoResize)) {
ImGui::Text("ImHex Hex Editor v%s by WerWolv", IMHEX_VERSION);
ImGui::Text("%s@%s", GIT_BRANCH, GIT_COMMIT_HASH);
ImGui::NewLine();
ImGui::Text("Source code available on GitHub:"); ImGui::SameLine();
ImGui::TextColored(ImVec4(0.4F, 0.4F, 0.8F, 1.0F), "WerWolv/ImHex ");