mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 21:03:15 -04:00
Fix Desktop multiplayer options showing a double separator (#7410)
This commit is contained in:
parent
6c533d63fb
commit
b21f616120
@ -66,9 +66,14 @@ fun multiplayerTab(
|
||||
|
||||
addSeparator(tab)
|
||||
|
||||
val turnCheckerSelect = addTurnCheckerOptions(tab, optionsPopup)
|
||||
|
||||
addSeparator(tab)
|
||||
// at the moment the notification service only exists on Android
|
||||
val turnCheckerSelect: RefreshSelect?
|
||||
if (Gdx.app.type != Application.ApplicationType.Android) {
|
||||
turnCheckerSelect = addTurnCheckerOptions(tab, optionsPopup)
|
||||
addSeparator(tab)
|
||||
} else {
|
||||
turnCheckerSelect = null
|
||||
}
|
||||
|
||||
addSelectAsSeparateTable(tab, SettingsSelect("Sound notification for when it's your turn in your currently open game:",
|
||||
createNotificationSoundOptions(),
|
||||
@ -182,9 +187,6 @@ private fun addTurnCheckerOptions(
|
||||
tab: Table,
|
||||
optionsPopup: OptionsPopup
|
||||
): RefreshSelect? {
|
||||
// at the moment the notification service only exists on Android
|
||||
if (Gdx.app.type != Application.ApplicationType.Android) return null
|
||||
|
||||
val settings = optionsPopup.settings
|
||||
|
||||
optionsPopup.addCheckbox(tab, "Enable out-of-game turn notifications", settings.multiplayer::turnCheckerEnabled)
|
||||
|
Loading…
x
Reference in New Issue
Block a user