mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +08:00
Fix #117: owning setting storage is not set after load
This commit is contained in:
parent
f862f575d7
commit
a6d98426e3
@ -146,7 +146,7 @@ internal open class MultiFileSettingStorageImpl(
|
||||
check(file.exists() && file.isFile && file.canRead()) { "${file.absolutePath} cannot be read" }
|
||||
Yaml.default.decodeFromString(instance.updaterSerializer, file.readText())
|
||||
instance
|
||||
}
|
||||
}.also { it.setStorage(this) }
|
||||
|
||||
protected open fun getSettingFile(holder: SettingHolder, clazz: KClass<*>): File = with(clazz) {
|
||||
val name = findASerialName()
|
||||
|
Loading…
Reference in New Issue
Block a user