SessionCtl // Fix a format mistake in Caps Lock notification text.
This commit is contained in:
parent
f9bc0a3642
commit
44dc2ee267
|
@ -48,13 +48,12 @@ public extension SessionCtl {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
let isCapsLockTurnedOn = event.modifierFlags.intersection(.deviceIndependentFlagsMask).contains(.capsLock)
|
let isCapsLockTurnedOn = event.modifierFlags.intersection(.deviceIndependentFlagsMask).contains(.capsLock)
|
||||||
let status = NSLocalizedString("NotificationSwitchASCII", comment: "")
|
let status = NSLocalizedString("NotificationSwitchASCII", comment: "")
|
||||||
if PrefMgr.shared.showNotificationsWhenTogglingCapsLock {
|
guard PrefMgr.shared.showNotificationsWhenTogglingCapsLock else { return }
|
||||||
Notifier.notify(
|
Notifier.notify(
|
||||||
message: isCapsLockTurnedOn
|
message: isCapsLockTurnedOn
|
||||||
? "Caps Lock" + NSLocalizedString("Alphanumerical Input Mode", comment: "") + "\n" + status
|
? "Caps Lock " + "Alphanumerical Input Mode".localized + "\n" + status
|
||||||
: NSLocalizedString("Chinese Input Mode", comment: "") + "\n" + status
|
: "Chinese Input Mode".localized + "\n" + status
|
||||||
)
|
)
|
||||||
}
|
|
||||||
self.isASCIIMode = isCapsLockTurnedOn
|
self.isASCIIMode = isCapsLockTurnedOn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue