TDKCandidates // Fix the .languageIdentifier attribute.

This commit is contained in:
ShikiSuen 2023-03-03 13:01:36 +08:00
parent 4f9e159c95
commit c7623244ab
1 changed files with 1 additions and 5 deletions

View File

@ -161,12 +161,8 @@ public class CandidateCellData: Hashable {
.foregroundColor: fontColorCandidate,
]
if #available(macOS 12, *) {
if UserDefaults.standard.bool(
forKey: UserDef.kEnableSwiftUIForTDKCandidates.rawValue
) {
attrCandidate[.languageIdentifier] = self.locale as AnyObject
}
}
let delta: String = (isMatrix && displayedText.count < 2) ? "  " : ""
let attrStrCandidate = NSAttributedString(
string: displayedText + delta, attributes: attrCandidate