diff --git a/mirai-console-graphical/src/main/kotlin/net/mamoe/mirai/console/graphical/controller/MiraiGraphicalUIController.kt b/mirai-console-graphical/src/main/kotlin/net/mamoe/mirai/console/graphical/controller/MiraiGraphicalUIController.kt index 1f3b27167..1b992d21f 100644 --- a/mirai-console-graphical/src/main/kotlin/net/mamoe/mirai/console/graphical/controller/MiraiGraphicalUIController.kt +++ b/mirai-console-graphical/src/main/kotlin/net/mamoe/mirai/console/graphical/controller/MiraiGraphicalUIController.kt @@ -129,7 +129,7 @@ class MiraiGraphicalUIController : Controller(), MiraiConsoleUI { pluginList.forEach { if (it.name == plugin.name && it.author == plugin.author) { if (plugin.version > it.version) { - it.latest = false + it.expired = true return } } diff --git a/mirai-console-graphical/src/main/kotlin/net/mamoe/mirai/console/graphical/model/PluginModel.kt b/mirai-console-graphical/src/main/kotlin/net/mamoe/mirai/console/graphical/model/PluginModel.kt index a6879cbab..4117ab1fe 100644 --- a/mirai-console-graphical/src/main/kotlin/net/mamoe/mirai/console/graphical/model/PluginModel.kt +++ b/mirai-console-graphical/src/main/kotlin/net/mamoe/mirai/console/graphical/model/PluginModel.kt @@ -25,6 +25,6 @@ class PluginModel( val enabledProperty = SimpleBooleanProperty(this, "enabledProperty") var enabled by enabledProperty - val latestProperty = SimpleBooleanProperty(this, "latestProperty", true) - var latest by latestProperty + val expiredProperty = SimpleBooleanProperty(this, "expiredProperty", false) + var expired by expiredProperty } \ No newline at end of file