From 9607be4b1446285e25f3d137a7f18c62d85bd82e Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Wed, 24 Aug 2022 06:40:33 +0800 Subject: [PATCH] Repo // Move fixOddPreferences() to AppDelegate. --- Source/Modules/AppDelegate.swift | 1 + Source/Modules/ControllerModules/ctlInputMethod_Core.swift | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Modules/AppDelegate.swift b/Source/Modules/AppDelegate.swift index 284b296f..dee2398f 100644 --- a/Source/Modules/AppDelegate.swift +++ b/Source/Modules/AppDelegate.swift @@ -73,6 +73,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, ctlNonModalAlertWindowDelega fsStreamHelper.delegate = self _ = fsStreamHelper.start() + mgrPrefs.fixOddPreferences() mgrPrefs.setMissingDefaults() // 只要使用者沒有勾選檢查更新、沒有主動做出要檢查更新的操作,就不要檢查更新。 diff --git a/Source/Modules/ControllerModules/ctlInputMethod_Core.swift b/Source/Modules/ControllerModules/ctlInputMethod_Core.swift index bffdd2c1..26837504 100644 --- a/Source/Modules/ControllerModules/ctlInputMethod_Core.swift +++ b/Source/Modules/ControllerModules/ctlInputMethod_Core.swift @@ -110,8 +110,6 @@ class ctlInputMethod: IMKInputController { keyHandler.clear() // 這句不要砍,因為後面 handle State.Empty() 不一定執行。 keyHandler.ensureParser() - mgrPrefs.fixOddPreferences() - if isASCIIMode { if mgrPrefs.disableShiftTogglingAlphanumericalMode { isASCIIMode = false