mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-16 10:49:17 +07:00
resolved #12511 - disallow slashes in mp game names
This commit is contained in:
@ -284,6 +284,8 @@ class MultiplayerScreen : PickerScreen() {
|
||||
btn.onClick {
|
||||
Popup(this).apply {
|
||||
val textField = UncivTextField("Game name", selectedGame!!.name)
|
||||
// slashes in mp names are interpreted as directory separators, so we don't allow them
|
||||
textField.setTextFieldFilter { _, c -> c != '/' && c != '\\' }
|
||||
add(textField).width(stageToShowOn.width / 2).row()
|
||||
val saveButton = "Save".toTextButton()
|
||||
|
||||
|
Reference in New Issue
Block a user