Changed: Update MaxTrack at launch

This commit is contained in:
kervala 2015-12-06 19:43:27 +01:00
parent e04ef14577
commit 7989f5ac01

View file

@ -62,6 +62,8 @@ void CSoundSettingsWidget::load()
tracks = 32;
tracksSlider->setValue( tracks / 4 );
updateTracksLabel();
if( s.config.getString( "DriverSound" ).compare( "FMod" ) == 0 )
fmodCheckBox->setChecked( true );
}
@ -85,16 +87,6 @@ void CSoundSettingsWidget::save()
s.config.setString( "DriverSound", std::string( "FMod" ) );
}
void CSoundSettingsWidget::changeEvent( QEvent *event )
{
if( event->type() == QEvent::LanguageChange )
{
retranslateUi( this );
updateTracksLabel();
}
QWidget::changeEvent( event );
}
void CSoundSettingsWidget::updateTracksLabel()
{
tracksLabel->setText( tr( "%1 tracks" ).arg( tracksSlider->value() * 4 ) );