1
0
mirror of synced 2025-01-31 03:53:44 +01:00

fix: Duplicate file chooser popup entries not being selectable

This commit is contained in:
WerWolv 2022-07-07 23:29:50 +02:00
parent 461c5eac3e
commit 0571fe383c

View File

@ -107,8 +107,11 @@ namespace hex::plugin::builtin {
u32 index = 0;
for (auto &path : s_selectableFiles) {
ImGui::PushID(index);
if (ImGui::Selectable(path.filename().string().c_str(), index == s_selectableFileIndex))
s_selectableFileIndex = index;
ImGui::PopID();
index++;
}