mirror of https://github.com/WerWolv/ImHex
fix: Only enable widgets in pattern data view when there's actually any patterns available
This commit is contained in:
parent
cb6247b16e
commit
553ee89787
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue