mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Custom data processor node name ID collisions
This commit is contained in:
@@ -713,10 +713,14 @@ namespace hex::plugin::builtin {
|
||||
ImGui::Separator();
|
||||
|
||||
// Draw entries for each custom node
|
||||
u32 id = 1;
|
||||
for (const auto &customNode : m_customNodes) {
|
||||
ImGui::PushID(id);
|
||||
if (ImGui::MenuItem(customNode.name.c_str())) {
|
||||
node = loadNode(customNode.data);
|
||||
}
|
||||
ImGui::PopID();
|
||||
id += 1;
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user