Skip to content

Commit

Permalink
improve mmc version selector
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkyAI committed Mar 14, 2021
1 parent 4e72f06 commit c71c05d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion multimc/src/main/kotlin/voodoo/mmc/MMCUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,12 @@ object MMCUtil {

var row = 0
versions.forEach { (key, version) ->
val button = JButton(version.title).apply {
val buttonText = if(key == version.version) {
version.title
} else {
"$key (${version.title})"
}
val button = JButton(buttonText).apply {
addActionListener {
result = key

Expand Down

0 comments on commit c71c05d

Please sign in to comment.