mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-13 12:44:48 +00:00
Changed: Update MaxTrack at launch
This commit is contained in:
parent
a9cd5ddaf2
commit
14921d4174
1 changed files with 2 additions and 10 deletions
|
@ -62,6 +62,8 @@ void CSoundSettingsWidget::load()
|
||||||
tracks = 32;
|
tracks = 32;
|
||||||
tracksSlider->setValue( tracks / 4 );
|
tracksSlider->setValue( tracks / 4 );
|
||||||
|
|
||||||
|
updateTracksLabel();
|
||||||
|
|
||||||
if( s.config.getString( "DriverSound" ).compare( "FMod" ) == 0 )
|
if( s.config.getString( "DriverSound" ).compare( "FMod" ) == 0 )
|
||||||
fmodCheckBox->setChecked( true );
|
fmodCheckBox->setChecked( true );
|
||||||
}
|
}
|
||||||
|
@ -85,16 +87,6 @@ void CSoundSettingsWidget::save()
|
||||||
s.config.setString( "DriverSound", std::string( "FMod" ) );
|
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()
|
void CSoundSettingsWidget::updateTracksLabel()
|
||||||
{
|
{
|
||||||
tracksLabel->setText( tr( "%1 tracks" ).arg( tracksSlider->value() * 4 ) );
|
tracksLabel->setText( tr( "%1 tracks" ).arg( tracksSlider->value() * 4 ) );
|
||||||
|
|
Loading…
Reference in a new issue