mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
feat: Fix sub menus, allow recent items to be collapsed
This commit is contained in:
@@ -228,8 +228,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
|
||||
void ViewHighlightRules::drawRulesConfig() {
|
||||
ImGuiExt::BeginSubWindow("hex.builtin.view.highlight_rules.config"_lang, ImGui::GetContentRegionAvail());
|
||||
{
|
||||
if (ImGuiExt::BeginSubWindow("hex.builtin.view.highlight_rules.config"_lang, nullptr, ImGui::GetContentRegionAvail())) {
|
||||
if (m_selectedRule != m_rules->end()) {
|
||||
|
||||
// Draw text input field for the rule name
|
||||
@@ -297,8 +296,9 @@ namespace hex::plugin::builtin {
|
||||
} else {
|
||||
ImGuiExt::TextFormattedCentered("hex.builtin.view.highlight_rules.no_rule"_lang);
|
||||
}
|
||||
|
||||
ImGuiExt::EndSubWindow();
|
||||
}
|
||||
ImGuiExt::EndSubWindow();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user