Skip to content

Commit

Permalink
無効な辞書を読み込んでいるのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
mtgto committed Dec 30, 2024
1 parent e2a4c48 commit cbf293e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions macSKK/Settings/SettingsViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ final class SettingsViewModel: ObservableObject {
return Future<[FileDict], Never>() { promise in
Task {
for dictSetting in dictSettings {
if !dictSetting.enabled {
continue
}
let dict = Global.dictionary.fileDict(id: dictSetting.id)
// 無効だった辞書が有効化された、もしくは辞書のエンコーディング設定が変わったら読み込む
if dictSetting.type.encoding != dict?.type.encoding {
Expand Down

0 comments on commit cbf293e

Please sign in to comment.