mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: ImGui ID not getting popped correctly
This commit is contained in:
@@ -119,6 +119,7 @@ namespace hex::plugin::builtin {
|
||||
static i32 selectedSection = -1;
|
||||
for (auto &[id, drawer] : *m_patternDrawer) {
|
||||
ImGui::PushID(id + 1);
|
||||
ON_SCOPE_EXIT { ImGui::PopID(); };
|
||||
drawer->enablePatternEditing(ImHexApi::Provider::get()->isWritable());
|
||||
|
||||
// If the runtime has finished evaluating, draw the patterns
|
||||
@@ -151,8 +152,6 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::PopID();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user