GUI: system file picker ins preview! (Windows)
This commit is contained in:
parent
03e31c441e
commit
52328df8c3
4 changed files with 108 additions and 14 deletions
|
|
@ -30,9 +30,9 @@ void _nfdThread(const NFDState state, std::atomic<bool>* ok, String* result) {
|
|||
nfdresult_t ret=NFD_CANCEL;
|
||||
|
||||
if (state.isSave) {
|
||||
ret=NFD_SaveDialog(NULL,state.path.c_str(),&out);
|
||||
ret=NFD_SaveDialog(NULL,state.path.c_str(),&out,state.clickCallback);
|
||||
} else {
|
||||
ret=NFD_OpenDialog(NULL,state.path.c_str(),&out);
|
||||
ret=NFD_OpenDialog(NULL,state.path.c_str(),&out,state.clickCallback);
|
||||
}
|
||||
|
||||
switch (ret) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue