mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-06-01 20:45:00 -06:00
frame_limit is now non-runtime-editable
This commit is contained in:
parent
c0c76ea1ce
commit
0fcb6ddcb2
@ -107,7 +107,10 @@ void ConfigureGeneral::SetConfiguration() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!Settings::IsConfiguringGlobal()) {
|
if (!Settings::IsConfiguringGlobal()) {
|
||||||
if (Settings::values.frame_limit.UsingGlobal()) {
|
if (is_powered_on) {
|
||||||
|
ui->emulation_speed_combo->setEnabled(false);
|
||||||
|
ui->frame_limit->setEnabled(false);
|
||||||
|
} else if (Settings::values.frame_limit.UsingGlobal()) {
|
||||||
ui->emulation_speed_combo->setCurrentIndex(0);
|
ui->emulation_speed_combo->setCurrentIndex(0);
|
||||||
ui->frame_limit->setEnabled(false);
|
ui->frame_limit->setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
@ -200,7 +203,11 @@ void ConfigureGeneral::RetranslateUI() {
|
|||||||
void ConfigureGeneral::SetupPerGameUI() {
|
void ConfigureGeneral::SetupPerGameUI() {
|
||||||
if (Settings::IsConfiguringGlobal()) {
|
if (Settings::IsConfiguringGlobal()) {
|
||||||
ui->region_combobox->setEnabled(Settings::values.region_value.UsingGlobal());
|
ui->region_combobox->setEnabled(Settings::values.region_value.UsingGlobal());
|
||||||
ui->frame_limit->setEnabled(Settings::values.frame_limit.UsingGlobal());
|
if (is_powered_on) {
|
||||||
|
ui->frame_limit->setEnabled(false);
|
||||||
|
} else {
|
||||||
|
ui->frame_limit->setEnabled(Settings::values.frame_limit.UsingGlobal());
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user