VstEmbed: Store embed method on plugin start
Avoids bugs when embed method is changed in setup dialog while VSTs are running.
This commit is contained in:
1 parent
a8311a7b49
commit
f9f4d0cb9c
3 files changed
+21
-23
No files matched your search
@@ -53,12 +53,13 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
|
||||
l->setVerticalSpacing( 2 );
|
||||
l->setHorizontalSpacing( 2 );
|
||||
|
||||
bool embed_vst = ConfigManager::inst()->vstEmbedMethod() != "none";
|
||||
bool embed_vst = false;
|
||||
|
||||
if( _ctl != NULL && _ctl->m_effect != NULL &&
|
||||
_ctl->m_effect->m_plugin != NULL )
|
||||
{
|
||||
m_plugin = _ctl->m_effect->m_plugin;
|
||||
embed_vst = m_plugin->embedMethod() != "none";
|
||||
|
||||
if (embed_vst) {
|
||||
m_plugin->createUI( nullptr, true );
|
||||
|
||||
Reference in new issue
Block a user