GUI: system file picker error feedback

This commit is contained in:
tildearrow 2022-07-14 01:59:55 -05:00
parent 5f92a6ffa6
commit 28a2db7a57
3 changed files with 25 additions and 5 deletions

View file

@ -28,6 +28,7 @@ class FurnaceGUIFileDialog {
bool sysDialog;
bool opened;
bool saving;
bool hasError;
String curPath;
String fileName;
#ifdef USE_NFD
@ -46,12 +47,14 @@ class FurnaceGUIFileDialog {
void close();
bool render(const ImVec2& min, const ImVec2& max);
bool isOpen();
bool isError();
String getPath();
String getFileName();
explicit FurnaceGUIFileDialog(bool system):
sysDialog(system),
opened(false),
saving(false),
hasError(false),
dialogO(NULL),
dialogS(NULL) {}
};