fix: setup時に必ずメモリーをリセットしてからロードするように変更

This commit is contained in:
Miwa / Ensan
2025-06-01 18:40:49 +09:00
parent 7607f91d04
commit db76b988fd
2 changed files with 3 additions and 0 deletions

View File

@@ -67,7 +67,9 @@ public final class DicdataStore {
self.mmValue = [PValue].init(repeating: .zero, count: self.midCount * self.midCount)
}
}
self.reloadUser()
_ = self.loadLOUDS(query: "user")
self.reloadMemory()
_ = self.loadLOUDS(query: "memory")
if requestOptions.preloadDictionary {

View File

@@ -845,6 +845,7 @@ final class LearningManager {
func save() {
if !options.learningType.needUpdateMemory {
debug(#function, "options.learningType=\(options.learningType)", "skip memory update")
return
}
do {