Uncheck OpenGL display when requirements aren't met

Also disable the vsync interval label to match other part of the UX
This commit is contained in:
Gess1t 2024-10-28 19:23:43 +01:00
parent 4f6679b821
commit d34aed7ccd

View File

@ -59,6 +59,7 @@ void VideoSettingsDialog::setEnabled()
ogldisplay = false; ogldisplay = false;
ui->rb3DOpenGL->setEnabled(false); ui->rb3DOpenGL->setEnabled(false);
ui->cbGLDisplay->setChecked(false);
ui->rb3DSoftware->setChecked(true); ui->rb3DSoftware->setChecked(true);
} }
@ -217,6 +218,7 @@ void VideoSettingsDialog::on_VideoSettingsDialog_rejected()
void VideoSettingsDialog::setVsyncControlEnable(bool hasOGL) void VideoSettingsDialog::setVsyncControlEnable(bool hasOGL)
{ {
ui->label_2->setEnabled(hasOGL);
ui->cbVSync->setEnabled(hasOGL); ui->cbVSync->setEnabled(hasOGL);
ui->sbVSyncInterval->setEnabled(hasOGL); ui->sbVSyncInterval->setEnabled(hasOGL);
} }