fix: Only enable widgets in pattern data view when there's actually any patterns available

This commit is contained in:
WerWolv
2025-12-15 10:00:29 +01:00
parent cb6247b16e
commit 553ee89787

View File

@@ -213,7 +213,7 @@ namespace hex::plugin::builtin {
bool patternsValid = false;
auto &runtime = ContentRegistry::PatternLanguage::getRuntime();
if (TRY_LOCK(ContentRegistry::PatternLanguage::getRuntimeLock())) {
patternsValid = runtime.arePatternsValid();
patternsValid = runtime.getCreatedPatternCount() > 0 && runtime.arePatternsValid();
}
if (ImGui::BeginTabBar("##SectionSelector")) {