Change latest to expired

This commit is contained in:
ryoii 2020-04-03 17:22:31 +08:00
parent 7d9ffb8c71
commit 234db0a65a
2 changed files with 3 additions and 3 deletions

View File

@ -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
}
}

View File

@ -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
}