mirror of
https://github.com/ioquake/launch.git
synced 2024-11-29 06:21:44 +00:00
Disable resolution spinboxes when "Custom" resolution is not set.
This commit is contained in:
parent
3ea451a168
commit
78d3bd02c3
1 changed files with 11 additions and 0 deletions
|
@ -179,6 +179,17 @@ void ioLaunch::on_cbResolution_currentIndexChanged(int index)
|
|||
// Predefined.
|
||||
settings.setResolutionMode(index - 2);
|
||||
}
|
||||
|
||||
if (index == 1)
|
||||
{
|
||||
ui->sbWidth->setEnabled(true);
|
||||
ui->sbHeight->setEnabled(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->sbWidth->setEnabled(false);
|
||||
ui->sbHeight->setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
void ioLaunch::on_rbFull_toggled(bool checked)
|
||||
|
|
Loading…
Reference in a new issue