mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 15:00:30 +02:00
Disallow disabling the pause button on iOS in the visibility UI too
This commit is contained in:
1 parent
7a8a642aed
commit
cf927ca809
1 file changed
+7
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user