PrefMgr // Remove AppleLanguages property value if empty.

This commit is contained in:
ShikiSuen 2023-03-05 22:59:28 +08:00
parent 0a657d9be8
commit a5a1861801
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ public extension PrefMgr {
if #unavailable(macOS 12) {
showNotificationsWhenTogglingCapsLock = false
}
if appleLanguages.isEmpty {
UserDefaults.standard.removeObject(forKey: UserDef.kAppleLanguages.rawValue)
}
// ( didSet )
candidateKeys = candidateKeys
//