minor rename to avoid being hidden by add method on JMenu
This commit is contained in:
@@ -32,7 +32,7 @@ set(value) {
|
|||||||
setAccelerator(value)
|
setAccelerator(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun JMenu.add(vararg actions: Action): Unit {
|
fun JMenu.item(vararg actions: Action): Unit {
|
||||||
for (action in actions) {
|
for (action in actions) {
|
||||||
val answer = JMenuItem(action)
|
val answer = JMenuItem(action)
|
||||||
add(answer)
|
add(answer)
|
||||||
|
|||||||
Reference in New Issue
Block a user