1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-26 02:14:22 +00:00

Cleaned up some FileChooser code, and added a new method showDialog()

This commit is contained in:
jules 2013-03-30 11:22:47 +00:00
parent 3d1aaf1aa9
commit e10dfff1af
4 changed files with 63 additions and 75 deletions

View file

@ -35,7 +35,8 @@ static bool exeIsAvailable (const char* const executable)
bool FileChooser::isPlatformDialogAvailable()
{
return exeIsAvailable ("zenity") || exeIsAvailable ("kdialog");
static bool canUseNativeBox = exeIsAvailable ("zenity") || exeIsAvailable ("kdialog");
return canUseNativeBox;
}
void FileChooser::showPlatformDialog (Array<File>& results,