mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +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)
|
||||
}
|
||||
|
||||
fun dropConfig(config: PluginConfig) {
|
||||
configs.remove(config)
|
||||
(config as? AutoSavePluginConfig)?.destroy()
|
||||
}
|
||||
|
||||
fun reloadAll() {
|
||||
data.forEach { dt ->
|
||||
ConsoleBuiltInPluginDataStorage.load(ConsoleBuiltInPluginDataHolder, dt)
|
||||
|
Loading…
Reference in New Issue
Block a user