Fix Vestige file browser filter (#7816)
- Remove pointless *.exe option - Add an "All VST files" option on Linux when there is both LinuxVST and Wine VST support - Remove *.dll option from Linux builds without Wine VST support (i.e. LinuxVST-only builds)
This commit is contained in:
@@ -79,10 +79,14 @@ Plugin::Descriptor Q_DECL_EXPORT vestige_plugin_descriptor =
|
||||
0x0100,
|
||||
Plugin::Type::Instrument,
|
||||
new PluginPixmapLoader( "logo" ),
|
||||
#ifdef LMMS_BUILD_LINUX
|
||||
"dll,so",
|
||||
#else
|
||||
#if defined(LMMS_BUILD_WIN32)
|
||||
"dll",
|
||||
#elif defined(LMMS_BUILD_LINUX)
|
||||
# if defined(LMMS_HAVE_VST_32) || defined(LMMS_HAVE_VST_64)
|
||||
"dll,so",
|
||||
# else
|
||||
"so",
|
||||
# endif
|
||||
#endif
|
||||
nullptr,
|
||||
} ;
|
||||
@@ -669,13 +673,17 @@ void VestigeInstrumentView::openPlugin()
|
||||
|
||||
// set filters
|
||||
QStringList types;
|
||||
types << tr( "DLL-files (*.dll)" )
|
||||
<< tr( "EXE-files (*.exe)" )
|
||||
#ifdef LMMS_BUILD_LINUX
|
||||
<< tr( "SO-files (*.so)" )
|
||||
#if defined(LMMS_BUILD_WIN32)
|
||||
types << tr("VST2 files (*.dll)");
|
||||
#elif defined(LMMS_BUILD_LINUX)
|
||||
# if defined(LMMS_HAVE_VST_32) || defined(LMMS_HAVE_VST_64)
|
||||
types << tr("All VST files (*.dll *.so)")
|
||||
<< tr("Windows VST2 files (*.dll)");
|
||||
# endif
|
||||
types << tr("LinuxVST files (*.so)");
|
||||
#endif
|
||||
;
|
||||
ofd.setNameFilters( types );
|
||||
|
||||
ofd.setNameFilters(types);
|
||||
|
||||
if( m_vi->m_pluginDLL != "" )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user