mirror of
https://github.com/LMMS/lmms.git
synced 2026-07-28 22:36:32 -04:00
Vst refactorings
This commit is contained in:
@@ -218,14 +218,12 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
|
||||
m_savePresetButton->setMinimumHeight( 21 );
|
||||
m_savePresetButton->setMaximumHeight( 21 );
|
||||
|
||||
int newSize;
|
||||
int newSize = 0;
|
||||
|
||||
if (embed_vst) {
|
||||
newSize = m_pluginWidget->width() + 20;
|
||||
newSize = (newSize < 250) ? 250 : newSize;
|
||||
} else {
|
||||
newSize = 250;
|
||||
}
|
||||
newSize = std::max(newSize, 250);
|
||||
|
||||
QWidget* resize = new QWidget(this);
|
||||
resize->resize( newSize, 10 );
|
||||
@@ -294,13 +292,6 @@ void VstEffectControlDialog::togglePluginUI( bool checked )
|
||||
return;
|
||||
}
|
||||
|
||||
if( ConfigManager::inst()->vstEmbedMethod() != "none" )
|
||||
{
|
||||
m_pluginWidget->setVisible( checked );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_plugin->toggleUI();
|
||||
}
|
||||
m_plugin->toggleUI();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user