mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Fix the fix
This commit is contained in:
parent
50ec861edd
commit
e0a65fb95a
@ -42,9 +42,7 @@ fun multiplayerTab(
|
|||||||
optionsPopup.addCheckbox(
|
optionsPopup.addCheckbox(
|
||||||
tab, "Enable multiplayer status button in singleplayer games",
|
tab, "Enable multiplayer status button in singleplayer games",
|
||||||
settings.multiplayer::statusButtonInSinglePlayer, updateWorld = true
|
settings.multiplayer::statusButtonInSinglePlayer, updateWorld = true
|
||||||
) {
|
)
|
||||||
settings.multiplayer.statusButtonInSinglePlayer = it
|
|
||||||
}
|
|
||||||
|
|
||||||
addSeparator(tab)
|
addSeparator(tab)
|
||||||
|
|
||||||
|
@ -166,7 +166,10 @@ class OptionsPopup(
|
|||||||
settingsProperty: KMutableProperty0<Boolean>,
|
settingsProperty: KMutableProperty0<Boolean>,
|
||||||
updateWorld: Boolean = false,
|
updateWorld: Boolean = false,
|
||||||
action: (Boolean) -> Unit = {}) {
|
action: (Boolean) -> Unit = {}) {
|
||||||
addCheckbox(table, text, settingsProperty.get(), updateWorld, action)
|
addCheckbox(table, text, settingsProperty.get(), updateWorld) {
|
||||||
|
action(it)
|
||||||
|
settingsProperty.set(it)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user