From 0a8368d6392f89d86d6434fda1bacec6cfa89a05 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 13 Jan 2021 22:53:21 +0100 Subject: [PATCH] Close base address popup when clicking Set --- source/views/view_hexeditor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/views/view_hexeditor.cpp b/source/views/view_hexeditor.cpp index 9906340bb..0ffc30326 100644 --- a/source/views/view_hexeditor.cpp +++ b/source/views/view_hexeditor.cpp @@ -243,8 +243,10 @@ namespace hex { ImGui::InputText("Address", this->m_baseAddressBuffer, 16, ImGuiInputTextFlags_CharsHexadecimal); ImGui::NewLine(); - if (ImGui::Button("Set")) + if (ImGui::Button("Set")) { provider->setBaseAddress(strtoull(this->m_baseAddressBuffer, nullptr, 16)); + ImGui::CloseCurrentPopup(); + } ImGui::SameLine(); if (ImGui::Button("Cancel"))