bind the new file picker

here be lions until further notice.
This commit is contained in:
tildearrow 2025-09-27 23:01:24 -05:00
parent 4ec66a4684
commit d81d8ff6aa
6 changed files with 64 additions and 138 deletions

View file

@ -18,7 +18,7 @@
*/
// this is the code to a new file picker using Dear ImGui.
// this will eventually replace ImGuiFileDialog as the built-in file picker.
// this replaces ImGuiFileDialog as the built-in file picker.
#include "newFilePicker.h"
#include "IconsFontAwesome4.h"
@ -1120,6 +1120,10 @@ bool FurnaceFilePicker::draw() {
// change directory
readDirectory(newDir);
}
return (curStatus!=FP_STATUS_WAITING);
}
bool FurnaceFilePicker::isOpened() {
return isOpen;
}
@ -1151,6 +1155,10 @@ bool FurnaceFilePicker::open(String name, String pa, int flags, const std::vecto
return true;
}
void FurnaceFilePicker::close() {
isOpen=false;
}
void FurnaceFilePicker::setMobile(bool val) {
isMobile=val;
}