From 9a3ecba927fbf1b37ff5e54662c4d917b65c01c8 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 17 Oct 2022 02:00:54 +0800 Subject: [PATCH] PrefUI // Reload user lang models on enabling the monitor. --- Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift index 146294ef..5063684e 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift @@ -119,6 +119,9 @@ struct VwrPrefPaneDictionary: View { LocalizedStringKey("Automatically reload user data files if changes detected"), isOn: $selAutoReloadUserData.onChange { PrefMgr.shared.shouldAutoReloadUserDataFiles = selAutoReloadUserData + if selAutoReloadUserData { + LMMgr.initUserLangModels() + } } ).controlSize(.small) }