From cbf293e7645f8a77b549b6d50ca66219565fe9c1 Mon Sep 17 00:00:00 2001 From: mtgto Date: Sun, 29 Dec 2024 18:40:35 +0900 Subject: [PATCH] =?UTF-8?q?=E7=84=A1=E5=8A=B9=E3=81=AA=E8=BE=9E=E6=9B=B8?= =?UTF-8?q?=E3=82=92=E8=AA=AD=E3=81=BF=E8=BE=BC=E3=82=93=E3=81=A7=E3=81=84?= =?UTF-8?q?=E3=82=8B=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- macSKK/Settings/SettingsViewModel.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/macSKK/Settings/SettingsViewModel.swift b/macSKK/Settings/SettingsViewModel.swift index 5766e52..c3e0c7a 100644 --- a/macSKK/Settings/SettingsViewModel.swift +++ b/macSKK/Settings/SettingsViewModel.swift @@ -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 {