mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 17:00:14 +08:00
delete dropConfig
This commit is contained in:
parent
73463554b8
commit
6d15c3b301
@ -26,11 +26,6 @@ internal object ConsoleDataScope : CoroutineScope by MiraiConsole.childScope("Co
|
|||||||
ConsoleBuiltInPluginConfigStorage.load(ConsoleBuiltInPluginConfigHolder, config)
|
ConsoleBuiltInPluginConfigStorage.load(ConsoleBuiltInPluginConfigHolder, config)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun dropConfig(config: PluginConfig) {
|
|
||||||
configs.remove(config)
|
|
||||||
(config as? AutoSavePluginConfig)?.destroy()
|
|
||||||
}
|
|
||||||
|
|
||||||
fun reloadAll() {
|
fun reloadAll() {
|
||||||
data.forEach { dt ->
|
data.forEach { dt ->
|
||||||
ConsoleBuiltInPluginDataStorage.load(ConsoleBuiltInPluginDataHolder, dt)
|
ConsoleBuiltInPluginDataStorage.load(ConsoleBuiltInPluginDataHolder, dt)
|
||||||
|
Loading…
Reference in New Issue
Block a user