ux: Update region setting after ticking "Match Selection" checkbox

This commit is contained in:
WerWolv
2021-05-23 22:46:33 +02:00
parent e688d34587
commit 143cdbd44b
3 changed files with 17 additions and 7 deletions

View File

@@ -107,7 +107,12 @@ namespace hex {
ImGui::InputScalar("hex.view.disassembler.base"_lang, ImGuiDataType_U64, &this->m_baseAddress, nullptr, nullptr, "%08llX", ImGuiInputTextFlags_CharsHexadecimal);
ImGui::InputScalarN("hex.view.disassembler.region"_lang, ImGuiDataType_U64, this->m_codeRegion, 2, nullptr, nullptr, "%08llX", ImGuiInputTextFlags_CharsHexadecimal);
ImGui::Checkbox("hex.common.match_selection"_lang, &this->m_shouldMatchSelection);
if (ImGui::IsItemEdited()) {
// Force execution of Region Selection Event
EventManager::post<RequestSelectionChange>(Region{ 0, 0 });
}
ImGui::NewLine();
ImGui::TextUnformatted("hex.view.disassembler.settings.header"_lang);