mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-31 22:01:38 -06:00
Use localized string for unknown display
This commit is contained in:
parent
46d7cb6b91
commit
af9ece45f3
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||
}
|
||||
|
||||
for screen in screens {
|
||||
let name = screen.displayName ?? "unknown"
|
||||
let name = screen.displayName ?? NSLocalizedString("Unknown", comment: "Unknown display name")
|
||||
let id = screen.displayID
|
||||
let isEnabled = (prefs.object(forKey: "\(id)-state") as? Bool) ?? true
|
||||
let display = Display(screen.displayID, name: name, isBuiltin: screen.isBuiltin, isEnabled: isEnabled)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue