PrefMgr // Remove unnecessary GCD.
This commit is contained in:
parent
d3668d9f0b
commit
e1648fc1a7
|
@ -239,9 +239,7 @@ public class PrefMgr: PrefMgrProtocol {
|
||||||
public var useSCPCTypingMode: Bool {
|
public var useSCPCTypingMode: Bool {
|
||||||
willSet {
|
willSet {
|
||||||
if newValue {
|
if newValue {
|
||||||
DispatchQueue.main.async {
|
LMMgr.loadUserSCPCSequencesData()
|
||||||
LMMgr.loadUserSCPCSequencesData()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -251,9 +249,7 @@ public class PrefMgr: PrefMgrProtocol {
|
||||||
willSet {
|
willSet {
|
||||||
LMMgr.setPhraseReplacementEnabled(newValue)
|
LMMgr.setPhraseReplacementEnabled(newValue)
|
||||||
if newValue {
|
if newValue {
|
||||||
DispatchQueue.main.async {
|
LMMgr.loadUserPhraseReplacement()
|
||||||
LMMgr.loadUserPhraseReplacement()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -262,9 +258,7 @@ public class PrefMgr: PrefMgrProtocol {
|
||||||
public var associatedPhrasesEnabled: Bool {
|
public var associatedPhrasesEnabled: Bool {
|
||||||
willSet {
|
willSet {
|
||||||
if newValue {
|
if newValue {
|
||||||
DispatchQueue.main.async {
|
LMMgr.loadUserAssociatesData()
|
||||||
LMMgr.loadUserAssociatesData()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue