From 392a8d5de972902442c743ddcb1932efbad4be09 Mon Sep 17 00:00:00 2001 From: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Date: Wed, 25 May 2022 18:37:44 +0200 Subject: [PATCH] Re-hide Enable Portrait option on desktop (#6912) * Re-hide Enable Portrait Option in desktop version * MainMenu Background Map Job cancellable * MainMenu Background Map generation cancellable * MainMenu Background Map cancellable - remove instrumentation * Revert "MainMenu Background Stuff" --- core/src/com/unciv/ui/options/AdvancedTab.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/ui/options/AdvancedTab.kt b/core/src/com/unciv/ui/options/AdvancedTab.kt index 81e4a8c4dd..dbf1912c92 100644 --- a/core/src/com/unciv/ui/options/AdvancedTab.kt +++ b/core/src/com/unciv/ui/options/AdvancedTab.kt @@ -40,7 +40,7 @@ fun advancedTab( addMaxZoomSlider(this, settings) val screen = optionsPopup.screen - if (screen.game.platformSpecificHelper != null) { + if (screen.game.platformSpecificHelper != null && Gdx.app.type == Application.ApplicationType.Android) { optionsPopup.addCheckbox(this, "Enable portrait orientation", settings.allowAndroidPortrait) { settings.allowAndroidPortrait = it // Note the following might close the options screen indirectly and delayed @@ -176,4 +176,4 @@ private fun addSetUserId(table: Table, settings: GameSettings, screen: BaseScree } table.add(takeUserIdFromClipboardButton).pad(5f).colspan(2).row() table.add(idSetLabel).colspan(2).row() -} \ No newline at end of file +}