Skip to content

Commit

Permalink
Merge pull request #207 from mtgto/disabled-dict
Browse files Browse the repository at this point in the history
無効にした辞書の説明に XXエントリ と表示され続けていたのを修正
  • Loading branch information
mtgto authored Aug 25, 2024
2 parents 4df58b2 + 4316fb4 commit 6b1d7ee
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions macSKK/Settings/DictionariesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,10 @@ struct DictionariesView: View {
}

private func loadingStatus(setting: DictSetting) -> String {
if let status = settingsViewModel.dictLoadingStatuses[setting.id] {
return loadingStatus(of: status)
} else if !setting.enabled {
// 元々無効になっていて、設定を今回の起動で切り替えてない辞書
if !setting.enabled {
return String(localized: "LoadingStatusDisabled")
} else if let status = settingsViewModel.dictLoadingStatuses[setting.id] {
return loadingStatus(of: status)
} else {
return String(localized: "LoadingStatusUnknown")
}
Expand Down

0 comments on commit 6b1d7ee

Please sign in to comment.