mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 17:00:14 +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" }
|
check(file.exists() && file.isFile && file.canRead()) { "${file.absolutePath} cannot be read" }
|
||||||
Yaml.default.decodeFromString(instance.updaterSerializer, file.readText())
|
Yaml.default.decodeFromString(instance.updaterSerializer, file.readText())
|
||||||
instance
|
instance
|
||||||
}
|
}.also { it.setStorage(this) }
|
||||||
|
|
||||||
protected open fun getSettingFile(holder: SettingHolder, clazz: KClass<*>): File = with(clazz) {
|
protected open fun getSettingFile(holder: SettingHolder, clazz: KClass<*>): File = with(clazz) {
|
||||||
val name = findASerialName()
|
val name = findASerialName()
|
||||||
|
Loading…
Reference in New Issue
Block a user