From d297b2d1ccd0e1c8841cd9cfe563717df827c135 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 3 Jul 2023 12:04:20 +0200 Subject: [PATCH] impr: Hide sections with an empty name --- lib/external/pattern_language | 2 +- plugins/builtin/source/content/views/view_pattern_editor.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/external/pattern_language b/lib/external/pattern_language index 85dac5660..965ba40f8 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit 85dac566096528099ae956a49a7ccfe7de1d3f97 +Subproject commit 965ba40f8b4dca7c1c52a4d7a5b3d42c991f5a96 diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index 6074c92c1..e74a3c4cc 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -480,6 +480,9 @@ namespace hex::plugin::builtin { if (TRY_LOCK(ContentRegistry::PatternLanguage::getRuntimeLock())) { for (auto &[id, section] : sections) { + if (section.name.empty()) + continue; + ImGui::PushID(id); ImGui::TableNextRow();