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:
parent
3d1aaf1aa9
commit
e10dfff1af
4 changed files with 63 additions and 75 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue