mirror of https://github.com/WerWolv/ImHex.git
fix: Hidden attribute not applying to top-level patterns
This commit is contained in:
parent
72ee1d186e
commit
e3f88395ec
|
@ -10,6 +10,8 @@ namespace hex {
|
|||
public:
|
||||
PatternDrawer() = default;
|
||||
|
||||
void draw(pl::ptrn::Pattern& pattern);
|
||||
|
||||
void visit(pl::ptrn::PatternArrayDynamic& pattern) override;
|
||||
void visit(pl::ptrn::PatternArrayStatic& pattern) override;
|
||||
void visit(pl::ptrn::PatternBitfieldField& pattern) override;
|
||||
|
@ -29,8 +31,6 @@ namespace hex {
|
|||
void visit(pl::ptrn::PatternWideString& pattern) override;
|
||||
|
||||
private:
|
||||
void draw(pl::ptrn::Pattern& pattern);
|
||||
|
||||
constexpr static auto ChunkSize = 512;
|
||||
constexpr static auto DisplayEndStep = 64;
|
||||
|
||||
|
|
|
@ -124,8 +124,9 @@ namespace hex::plugin::builtin {
|
|||
ImGui::TableHeadersRow();
|
||||
|
||||
if (!sortedPatterns.empty()) {
|
||||
for (auto &pattern : sortedPatterns)
|
||||
pattern->accept(this->m_patternDrawer);
|
||||
for (auto &pattern : sortedPatterns) {
|
||||
this->m_patternDrawer.draw(*pattern);
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::EndTable();
|
||||
|
|
Loading…
Reference in New Issue