From e1648fc1a7d3da9d02b0d655c9487306869f70f2 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Wed, 21 Sep 2022 13:01:17 +0800 Subject: [PATCH] PrefMgr // Remove unnecessary GCD. --- Source/Modules/PrefMgr.swift | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Source/Modules/PrefMgr.swift b/Source/Modules/PrefMgr.swift index 922612c7..1af72d7e 100644 --- a/Source/Modules/PrefMgr.swift +++ b/Source/Modules/PrefMgr.swift @@ -239,9 +239,7 @@ public class PrefMgr: PrefMgrProtocol { public var useSCPCTypingMode: Bool { willSet { if newValue { - DispatchQueue.main.async { - LMMgr.loadUserSCPCSequencesData() - } + LMMgr.loadUserSCPCSequencesData() } } } @@ -251,9 +249,7 @@ public class PrefMgr: PrefMgrProtocol { willSet { LMMgr.setPhraseReplacementEnabled(newValue) if newValue { - DispatchQueue.main.async { - LMMgr.loadUserPhraseReplacement() - } + LMMgr.loadUserPhraseReplacement() } } } @@ -262,9 +258,7 @@ public class PrefMgr: PrefMgrProtocol { public var associatedPhrasesEnabled: Bool { willSet { if newValue { - DispatchQueue.main.async { - LMMgr.loadUserAssociatesData() - } + LMMgr.loadUserAssociatesData() } } }