IME // Auto populate templates when user dicts are missing.
This commit is contained in:
parent
d685e45f2f
commit
5c55aa1adc
|
@ -88,6 +88,8 @@ public enum IME {
|
|||
// MARK: - Initializing Language Models.
|
||||
|
||||
static func initLangModels(userOnly: Bool) {
|
||||
mgrLangModel.chkUserLMFilesExist(.imeModeCHT)
|
||||
mgrLangModel.chkUserLMFilesExist(.imeModeCHS)
|
||||
// mgrLangModel 的 loadUserPhrases 等函式在自動讀取 dataFolderPath 時,
|
||||
// 如果發現自訂目錄不可用,則會自動抹去自訂目錄設定、改採預設目錄。
|
||||
// 所以這裡不需要特別處理。
|
||||
|
|
|
@ -315,7 +315,7 @@ enum mgrLangModel {
|
|||
return true
|
||||
}
|
||||
|
||||
static func chkUserLMFilesExist(_ mode: InputMode) -> Bool {
|
||||
@discardableResult static func chkUserLMFilesExist(_ mode: InputMode) -> Bool {
|
||||
if !userDataFolderExists {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue