|
|
|
@@ -172,6 +172,7 @@ private: |
|
|
|
void operator() (LPWSTR ptr) const noexcept { CoTaskMemFree (ptr); }
|
|
|
|
};
|
|
|
|
|
|
|
|
#if JUCE_MSVC
|
|
|
|
bool showDialog (IFileDialog& dialog, bool async) const
|
|
|
|
{
|
|
|
|
FILEOPENDIALOGOPTIONS flags = {};
|
|
|
|
@@ -327,6 +328,7 @@ private: |
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
Array<URL> openDialogPreVista (bool async)
|
|
|
|
{
|
|
|
|
@@ -436,11 +438,13 @@ private: |
|
|
|
|
|
|
|
const Remover remover (*this);
|
|
|
|
|
|
|
|
#if JUCE_MSVC
|
|
|
|
if (SystemStats::getOperatingSystemType() >= SystemStats::WinVista
|
|
|
|
&& customComponent == nullptr)
|
|
|
|
{
|
|
|
|
return openDialogVistaAndUp (async);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return openDialogPreVista (async);
|
|
|
|
}
|
|
|
|
|