mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -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)
|
addSeparator(tab)
|
||||||
|
|
||||||
val turnCheckerSelect = addTurnCheckerOptions(tab, optionsPopup)
|
// at the moment the notification service only exists on Android
|
||||||
|
val turnCheckerSelect: RefreshSelect?
|
||||||
addSeparator(tab)
|
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:",
|
addSelectAsSeparateTable(tab, SettingsSelect("Sound notification for when it's your turn in your currently open game:",
|
||||||
createNotificationSoundOptions(),
|
createNotificationSoundOptions(),
|
||||||
@ -182,9 +187,6 @@ private fun addTurnCheckerOptions(
|
|||||||
tab: Table,
|
tab: Table,
|
||||||
optionsPopup: OptionsPopup
|
optionsPopup: OptionsPopup
|
||||||
): RefreshSelect? {
|
): RefreshSelect? {
|
||||||
// at the moment the notification service only exists on Android
|
|
||||||
if (Gdx.app.type != Application.ApplicationType.Android) return null
|
|
||||||
|
|
||||||
val settings = optionsPopup.settings
|
val settings = optionsPopup.settings
|
||||||
|
|
||||||
optionsPopup.addCheckbox(tab, "Enable out-of-game turn notifications", settings.multiplayer::turnCheckerEnabled)
|
optionsPopup.addCheckbox(tab, "Enable out-of-game turn notifications", settings.multiplayer::turnCheckerEnabled)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user