Improve control of sheet containing file dialog window.

This commit is contained in:
ManoloFLTK 2020-07-06 21:00:13 +02:00
parent f09e17c3c5
commit 0b5f92d1c7
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,7 @@ int Fl_Quartz_Native_File_Chooser_Driver::runmodal()
[_panel beginSheetModalForWindow:[NSApp mainWindow] completionHandler:^(NSInteger returnCode) {
complete = returnCode; // this block runs after OK or Cancel was triggered in file dialog
}]; // this message returns immediately and begins the file dialog as a sheet
while (complete < 0) Fl::wait(100); // loop until end of file dialog
while ([_panel isVisible]) Fl::wait(100); // loop until end of file dialog
retval = complete;
}
else