diff --git a/lib/external/pattern_language b/lib/external/pattern_language index 4dec3adf6e2a8..b5694bea25f0a 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit 4dec3adf6e2a8369569d64a6fe2c46b7c09f5943 +Subproject commit b5694bea25f0a947ba5d39eacda2109482cfcf62 diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index e38b20d659dad..52fd2bf84ba06 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -928,7 +928,8 @@ namespace hex::plugin::builtin { ImGui::EndMenu(); } - if (ImGui::BeginMenu("hex.builtin.view.pattern_editor.menu.edit.place_pattern.custom"_lang, !types.empty())) { + bool hasPlaceableTypes = std::any_of(types.begin(), types.end(), [](const auto &type) { return !type.second->isTemplateType(); }); + if (ImGui::BeginMenu("hex.builtin.view.pattern_editor.menu.edit.place_pattern.custom"_lang, hasPlaceableTypes)) { for (const auto &[typeName, type] : types) { if (type->isTemplateType()) continue;