From cf927ca809ebbe1d223f9156942be5e6e662eeca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 25 Nov 2025 16:02:20 +0100 Subject: [PATCH] Disallow disabling the pause button on iOS in the visibility UI too --- UI/TouchControlVisibilityScreen.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/UI/TouchControlVisibilityScreen.cpp b/UI/TouchControlVisibilityScreen.cpp index e38bcb0a5f..cd28557e75 100644 --- a/UI/TouchControlVisibilityScreen.cpp +++ b/UI/TouchControlVisibilityScreen.cpp @@ -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);