mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
Change latest
to expired
This commit is contained in:
parent
7d9ffb8c71
commit
234db0a65a
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user