mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-27 20:50:09 +08:00
相反于加载顺序卸载插件, close #1994
This commit is contained in:
parent
4408750847
commit
70c8255b6b
@ -78,12 +78,13 @@ internal class PluginManagerImpl(
|
||||
|
||||
init {
|
||||
MiraiConsole.coroutineContext[Job]!!.invokeOnCompletion {
|
||||
plugins.forEach { plugin ->
|
||||
if (plugin.isEnabled)
|
||||
plugins.asReversed().forEach { plugin ->
|
||||
if (plugin.isEnabled) {
|
||||
disablePlugin(plugin)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// region LOADING
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user