This commit is contained in:
ryoii 2020-04-11 18:59:39 +08:00
parent cbeeaafc72
commit fdf2cec4d5
2 changed files with 4 additions and 2 deletions

View File

@ -96,7 +96,7 @@ class PluginsCenterView : View() {
}
jfxButton("下载") {
jfxButton(if (item.expired) "更新" else "下载") {
action { download(item, this) }
}

View File

@ -4,11 +4,13 @@ import javafx.geometry.Insets
import net.mamoe.mirai.console.center.PluginCenter
import net.mamoe.mirai.console.graphical.util.jfxTextfield
import tornadofx.Fragment
import tornadofx.form
import tornadofx.vbox
class PluginDetailFragment(info: PluginCenter.PluginInfo) : Fragment() {
init {
title = info.name
}
override val root = vbox {