From 8661b6551d1205dc4b22c943c54dca03f2a5e911 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 8 Sep 2025 19:53:51 +0200 Subject: [PATCH] fix: Opening pattern sections not working --- .../builtin/source/content/views/view_pattern_data.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/builtin/source/content/views/view_pattern_data.cpp b/plugins/builtin/source/content/views/view_pattern_data.cpp index 7a777a28a..b57529ff3 100644 --- a/plugins/builtin/source/content/views/view_pattern_data.cpp +++ b/plugins/builtin/source/content/views/view_pattern_data.cpp @@ -143,11 +143,9 @@ namespace hex::plugin::builtin { if (ImGui::BeginPopup("##PatternDataContextMenu")) { if (ImGui::MenuItemEx("hex.builtin.view.pattern_data.section.view_raw"_lang, ICON_VS_OPEN_PREVIEW)) { - if (TRY_LOCK(ContentRegistry::PatternLanguage::getRuntimeLock())) { - if (auto it = sections.find(selectedSection); it != sections.end()) { - const auto &[sectionId, section] = *it; - ImHexApi::Provider::add(section.data, section.name); - } + if (auto it = sections.find(selectedSection); it != sections.end()) { + const auto &[sectionId, section] = *it; + ImHexApi::Provider::add(section.data, section.name); } } ImGui::EndPopup();