file picker: what? it's stil broken?!

This commit is contained in:
tildearrow 2025-10-05 01:59:32 -05:00
parent 5e8f3e7577
commit 78a86e3d08

View file

@ -1106,14 +1106,14 @@ void FurnaceFilePicker::drawFileList(ImVec2& tableSize, bool& acknowledged) {
lastScrollY=ImGui::GetScrollY();
} else {
ImGui::SetScrollY(lastScrollY);
if (ImGui::GetScrollMaxY()>=lastScrollY) {
enforceScrollY--;
}
}
ImGui::EndTable();
entryLock.unlock();
}
if (enforceScrollY>0 && haveFiles) {
enforceScrollY--;
}
}
}
@ -1784,8 +1784,8 @@ bool FurnaceFilePicker::draw(ImGuiWindowFlags winFlags) {
if (readDirectory(newDir) || isSearch || (isSearchPrev!=isSearch)) {
// scroll to top
lastScrollY=0.0f;
enforceScrollY=2;
}
enforceScrollY=2;
}
return (curStatus!=FP_STATUS_WAITING);
}
@ -1823,8 +1823,8 @@ bool FurnaceFilePicker::open(String name, String pa, String hint, int flags, con
isSearch=false;
if (readDirectory(pa)) {
lastScrollY=0.0f;
enforceScrollY=2;
}
enforceScrollY=2;
windowName=name;
}
hint=entryNameHint;