Rewrite the setup dialog (#3820)

This commit is contained in:
Hussam al-Homsi
2019-09-05 20:32:17 -04:00
committed by GitHub
parent c2eefe73d0
commit 84d1091100
17 changed files with 1506 additions and 1543 deletions

View File

@@ -103,7 +103,7 @@ bool MidiImport::tryImport( TrackContainer* tc )
#ifdef LMMS_HAVE_FLUIDSYNTH
if( gui != NULL &&
ConfigManager::inst()->defaultSoundfont().isEmpty() )
ConfigManager::inst()->sf2File().isEmpty() )
{
QMessageBox::information( gui->mainWindow(),
tr( "Setup incomplete" ),
@@ -242,7 +242,7 @@ public:
if( it_inst )
{
isSF2 = true;
it_inst->loadFile( ConfigManager::inst()->defaultSoundfont() );
it_inst->loadFile( ConfigManager::inst()->sf2File() );
it_inst->childModel( "bank" )->setValue( 0 );
it_inst->childModel( "patch" )->setValue( 0 );
}

View File

@@ -151,7 +151,7 @@ sf2Instrument::sf2Instrument( InstrumentTrack * _instrument_track ) :
m_chorusDepth.setInitValue(settingVal);
#endif
loadFile( ConfigManager::inst()->defaultSoundfont() );
loadFile( ConfigManager::inst()->sf2File() );
updateSampleRate();
updateReverbOn();