IME // Auto populate templates when user dicts are missing.

This commit is contained in:
ShikiSuen 2022-07-17 21:14:32 +08:00
parent d685e45f2f
commit 5c55aa1adc
2 changed files with 3 additions and 1 deletions

View File

@ -88,6 +88,8 @@ public enum IME {
// MARK: - Initializing Language Models. // MARK: - Initializing Language Models.
static func initLangModels(userOnly: Bool) { static func initLangModels(userOnly: Bool) {
mgrLangModel.chkUserLMFilesExist(.imeModeCHT)
mgrLangModel.chkUserLMFilesExist(.imeModeCHS)
// mgrLangModel loadUserPhrases dataFolderPath // mgrLangModel loadUserPhrases dataFolderPath
// //
// //

View File

@ -315,7 +315,7 @@ enum mgrLangModel {
return true return true
} }
static func chkUserLMFilesExist(_ mode: InputMode) -> Bool { @discardableResult static func chkUserLMFilesExist(_ mode: InputMode) -> Bool {
if !userDataFolderExists { if !userDataFolderExists {
return false return false
} }