PrefMgr // Remove unnecessary GCD.

This commit is contained in:
ShikiSuen 2022-09-21 13:01:17 +08:00
parent d3668d9f0b
commit e1648fc1a7
1 changed files with 3 additions and 9 deletions

View File

@ -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()
}
}
}