TDKCandidates // Fix the .languageIdentifier attribute.
This commit is contained in:
parent
4f9e159c95
commit
c7623244ab
|
@ -161,11 +161,7 @@ public class CandidateCellData: Hashable {
|
||||||
.foregroundColor: fontColorCandidate,
|
.foregroundColor: fontColorCandidate,
|
||||||
]
|
]
|
||||||
if #available(macOS 12, *) {
|
if #available(macOS 12, *) {
|
||||||
if UserDefaults.standard.bool(
|
attrCandidate[.languageIdentifier] = self.locale as AnyObject
|
||||||
forKey: UserDef.kEnableSwiftUIForTDKCandidates.rawValue
|
|
||||||
) {
|
|
||||||
attrCandidate[.languageIdentifier] = self.locale as AnyObject
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
let delta: String = (isMatrix && displayedText.count < 2) ? " " : ""
|
let delta: String = (isMatrix && displayedText.count < 2) ? " " : ""
|
||||||
let attrStrCandidate = NSAttributedString(
|
let attrStrCandidate = NSAttributedString(
|
||||||
|
|
Loading…
Reference in New Issue