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"
This commit is contained in:
SomeTroglodyte
2022-05-25 18:37:44 +02:00
committed by GitHub
parent 0f63000ac8
commit 392a8d5de9

View File

@ -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()
}
}