Close base address popup when clicking Set

This commit is contained in:
WerWolv 2021-01-13 22:53:21 +01:00
parent 9ade281a92
commit 0a8368d639
1 changed files with 3 additions and 1 deletions

View File

@ -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"))