Fix the fix

This commit is contained in:
Azzurite 2022-06-23 20:01:44 +02:00
parent 50ec861edd
commit e0a65fb95a
2 changed files with 5 additions and 4 deletions

View File

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

View File

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