mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Launcher setting: Disable spinBoxFramerateLimit if VSync is enabled
This commit is contained in:
parent
bfa5ef7990
commit
e33127a1f7
@ -83,6 +83,7 @@ void CSettingsView::loadSettings()
|
||||
|
||||
ui->spinBoxInterfaceScaling->setValue(settings["video"]["resolution"]["scaling"].Float());
|
||||
ui->spinBoxFramerateLimit->setValue(settings["video"]["targetfps"].Float());
|
||||
ui->spinBoxFramerateLimit->setDisabled(settings["video"]["vsync"].Bool());
|
||||
ui->checkBoxVSync->setChecked(settings["video"]["vsync"].Bool());
|
||||
ui->spinBoxReservedArea->setValue(std::round(settings["video"]["reservedWidth"].Float() * 100));
|
||||
|
||||
@ -499,6 +500,7 @@ void CSettingsView::on_checkBoxVSync_stateChanged(int arg1)
|
||||
{
|
||||
Settings node = settings.write["video"]["vsync"];
|
||||
node->Bool() = arg1;
|
||||
ui->spinBoxFramerateLimit->setDisabled(settings["video"]["vsync"].Bool());
|
||||
}
|
||||
|
||||
void CSettingsView::on_comboBoxEnemyPlayerAI_currentTextChanged(const QString &arg1)
|
||||
|
Loading…
Reference in New Issue
Block a user