From 672b804ac5fd53d6ed0b0fd08131047cb47c3e8c Mon Sep 17 00:00:00 2001 From: Azzurite Date: Sun, 19 Jun 2022 01:13:45 +0200 Subject: [PATCH] Refactor: Fix doc comments --- core/src/com/unciv/ui/popup/Popup.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/com/unciv/ui/popup/Popup.kt b/core/src/com/unciv/ui/popup/Popup.kt index 9ed408f8fc..c782525609 100644 --- a/core/src/com/unciv/ui/popup/Popup.kt +++ b/core/src/com/unciv/ui/popup/Popup.kt @@ -110,7 +110,7 @@ open class Popup( } /** - * Adds a [TextButton] and ends the current row. + * Adds a [TextButton]. * @param text The button's caption. * @param key Associate a key with this button's action. * @param action A lambda to be executed when the button is clicked. @@ -122,7 +122,6 @@ open class Popup( button.keyShortcuts.add(key) return add(button) } - /** @link [addButton] */ fun addButton(text: String, key: Char, style: TextButtonStyle? = null, action: () -> Unit) = addButton(text, KeyCharAndCode(key), style, action).apply { row() } fun addButton(text: String, key: Int, style: TextButtonStyle? = null, action: () -> Unit)