fix: Providers with the same name not being selectable in diff view
Fixes #1034
This commit is contained in:
parent
cf72b5ec5c
commit
ffafb05d3d
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user