fix: Duplicate file chooser popup entries not being selectable
This commit is contained in:
parent
461c5eac3e
commit
0571fe383c
@ -107,8 +107,11 @@ namespace hex::plugin::builtin {
|
|||||||
|
|
||||||
u32 index = 0;
|
u32 index = 0;
|
||||||
for (auto &path : s_selectableFiles) {
|
for (auto &path : s_selectableFiles) {
|
||||||
|
ImGui::PushID(index);
|
||||||
if (ImGui::Selectable(path.filename().string().c_str(), index == s_selectableFileIndex))
|
if (ImGui::Selectable(path.filename().string().c_str(), index == s_selectableFileIndex))
|
||||||
s_selectableFileIndex = index;
|
s_selectableFileIndex = index;
|
||||||
|
ImGui::PopID();
|
||||||
|
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user