mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
fix: Only enable widgets in pattern data view when there's actually any patterns available
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user