From c0c0e39c9b4efc767d1eaaf6328f7cddccdb20ba Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 7 May 2022 02:08:10 +0800 Subject: [PATCH] PrefUI // Fix a bug of not syncing prefs to LMInstantiator. (#76) --- Source/UI/PrefUI/suiPrefPaneDictionary.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/UI/PrefUI/suiPrefPaneDictionary.swift b/Source/UI/PrefUI/suiPrefPaneDictionary.swift index b1f7a635..ba9e5170 100644 --- a/Source/UI/PrefUI/suiPrefPaneDictionary.swift +++ b/Source/UI/PrefUI/suiPrefPaneDictionary.swift @@ -116,6 +116,7 @@ struct suiPrefPaneDictionary: View { Toggle(LocalizedStringKey("Enable CNS11643 Support (2022-01-27)"), isOn: $selEnableCNS11643) .onChange(of: selEnableCNS11643) { value in mgrPrefs.cns11643Enabled = value + mgrLangModel.setCNSEnabled(value) } Toggle( LocalizedStringKey("Enable symbol input support (incl. certain emoji symbols)"), @@ -123,6 +124,7 @@ struct suiPrefPaneDictionary: View { ) .onChange(of: selEnableSymbolInputSupport) { value in mgrPrefs.symbolInputEnabled = value + mgrLangModel.setSymbolEnabled(value) } } }