Disallow disabling the pause button on iOS in the visibility UI too

This commit is contained in:
Henrik Rydgård committed 2025-11-25 16:02:37 +01:00
1 parent 7a8a642aed
commit cf927ca809
1 file changed
+7
+7
View File
@@ -135,6 +135,13 @@ void TouchControlVisibilityScreen::CreateVisibilityTab(UI::LinearLayout *vert) {
} else {
choice = new CheckBoxChoice(mc->T(toggle.key), checkbox, new LinearLayoutParams(1.0f));
}
// Cannot hide the back button if the system doesn't have a built-in one.
if (toggle.key == "Pause" && !System_GetPropertyBool(SYSPROP_HAS_BACK_BUTTON)) {
checkbox->SetEnabled(false);
choice->SetEnabled(false);
}
choice->SetCentered(true);
row->Add(choice);
grid->Add(row);