From 0a015060bf8d8006eadfaa2f443c5e8a15f2b424 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 12 Oct 2025 14:53:55 -0500 Subject: [PATCH] file picker: possibly fix nav so we can turn it on while the file picker is visible --- src/gui/newFilePicker.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/newFilePicker.cpp b/src/gui/newFilePicker.cpp index 8f53e298a..517a74d47 100644 --- a/src/gui/newFilePicker.cpp +++ b/src/gui/newFilePicker.cpp @@ -978,7 +978,6 @@ void FurnaceFilePicker::drawFileList(ImVec2& tableSize, bool& acknowledged) { // file list entryLock.lock(); - int index=0; listClipper.Begin(filteredEntries.size(),rowHeight); while (listClipper.Step()) { for (int _i=listClipper.DisplayStart; _icolor)); - ImGui::PushID(index++); + ImGui::PushID(_i); if (ImGui::Selectable(style->icon.c_str(),i->isSelected,ImGuiSelectableFlags_AllowDoubleClick|ImGuiSelectableFlags_SpanAllColumns|ImGuiSelectableFlags_SpanAvailWidth)) { bool doNotAcknowledge=false; if ((ImGui::IsKeyDown(ImGuiKey_LeftShift) || ImGui::IsKeyDown(ImGuiKey_RightShift)) && multiSelect) {