1
0
mirror of synced 2024-11-12 10:10:53 +01:00

fix: Providers with the same name not being selectable in diff view

Fixes #1034
This commit is contained in:
WerWolv 2023-04-13 15:03:14 +02:00
parent cf72b5ec5c
commit ffafb05d3d

View File

@ -92,10 +92,12 @@ namespace hex::plugin::builtin {
if (ImGui::BeginCombo("", preview.c_str())) { if (ImGui::BeginCombo("", preview.c_str())) {
for (size_t i = 0; i < providers.size(); i++) { for (size_t i = 0; i < providers.size(); i++) {
ImGui::PushID(i + 1);
if (ImGui::Selectable(providers[i]->getName().c_str())) { if (ImGui::Selectable(providers[i]->getName().c_str())) {
providerIndex = i; providerIndex = i;
shouldReanalyze = true; shouldReanalyze = true;
} }
ImGui::PopID();
} }
ImGui::EndCombo(); ImGui::EndCombo();