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
1 changed files with 1 additions and 1 deletions

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")) {