From 234db0a65ab4459668f476c24c8450f097bd9959 Mon Sep 17 00:00:00 2001 From: ryoii Date: Fri, 3 Apr 2020 17:22:31 +0800 Subject: [PATCH] Change `latest` to `expired` --- .../graphical/controller/MiraiGraphicalUIController.kt | 2 +- .../net/mamoe/mirai/console/graphical/model/PluginModel.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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