patterns: Fixed MIME pragma not being registered correctly
This commit is contained in:
parent
9d556ecc0f
commit
87e616ad23
@ -80,6 +80,8 @@ namespace hex::plugin::builtin {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
ContentRegistry::PatternLanguage::addPragma("MIME", [](pl::PatternLanguage&, const std::string &value) { return !value.empty(); });
|
||||
}
|
||||
|
||||
}
|
@ -144,7 +144,7 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
}
|
||||
|
||||
runtime.removePragma("MIME");
|
||||
runtime.addPragma("MIME", [](pl::PatternLanguage&, const std::string &value) { return !value.empty(); });
|
||||
|
||||
if (!this->m_possiblePatternFiles.empty()) {
|
||||
this->m_selectedPatternFile = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user