From 3ec0753686593a8e16adef6aa9fef3e327b1fb26 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sun, 5 Mar 2023 22:59:42 +0800 Subject: [PATCH] AppDelegate // Fix odd preferences first. --- Source/Modules/AppDelegate.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Modules/AppDelegate.swift b/Source/Modules/AppDelegate.swift index b3552602..1f754516 100644 --- a/Source/Modules/AppDelegate.swift +++ b/Source/Modules/AppDelegate.swift @@ -48,6 +48,7 @@ public extension AppDelegate { func applicationDidFinishLaunching(_: Notification) { NSUserNotificationCenter.default.delegate = self + PrefMgr.shared.fixOddPreferences() if PrefMgr.shared.failureFlagForIMKCandidates { DispatchQueue.main.async { @@ -91,8 +92,6 @@ public extension AppDelegate { if LMMgr.userDataFolderExists { self.folderMonitor.startMonitoring() } } - PrefMgr.shared.fixOddPreferences() - // 只要使用者沒有勾選檢查更新、沒有主動做出要檢查更新的操作,就不要檢查更新。 if PrefMgr.shared.checkUpdateAutomatically { UpdateSputnik.shared.checkForUpdate(forced: false, url: kUpdateInfoSourceURL)