citra_qt: Hide refresh rate dialog on global configure

This commit is contained in:
GPUCode 2023-04-06 22:54:49 +03:00 committed by GitHub
parent ce115869c9
commit 94a46c4b82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,6 +129,7 @@ void ConfigureDebug::SetupPerGameUI() {
if (Settings::IsConfiguringGlobal()) {
ui->slider_clock_speed->setEnabled(Settings::values.cpu_clock_percentage.UsingGlobal());
ui->slider_refresh_rate->setEnabled(Settings::values.refresh_rate.UsingGlobal());
ui->refresh_rate_widget->setVisible(false);
return;
}
@ -145,6 +146,7 @@ void ConfigureDebug::SetupPerGameUI() {
ui->gdb_group->setVisible(false);
ui->logging_group->setVisible(false);
ui->toggle_cpu_jit->setVisible(false);
ui->refresh_rate_widget->setVisible(true);
}
void ConfigureDebug::RetranslateUI() {