fix: Pattern Data table not retaining column settings in all cases

This commit is contained in:
WerWolv 2025-09-16 23:28:31 +02:00
parent 84342f7a7b
commit 75efe39298
1 changed files with 2 additions and 0 deletions

View File

@ -215,11 +215,13 @@ namespace hex::plugin::builtin {
if (!patternsValid) {
ImGui::BeginDisabled();
ImGui::PushID(1);
if (ImGui::BeginTabItem("hex.builtin.view.pattern_data.section.main"_lang)) {
static ui::PatternDrawer emptyDrawer;
emptyDrawer.draw({ }, nullptr, height);
ImGui::EndTabItem();
}
ImGui::PopID();
ImGui::EndDisabled();
} else {
static i32 selectedSection = -1;