mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-15 14:15:55 -06:00
Add message when no supported display was found
This commit is contained in:
parent
818f9a8c0a
commit
effa6039d5
1 changed files with 9 additions and 0 deletions
|
|
@ -242,6 +242,15 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||
defaultVolumeSlider = volumeSlider
|
||||
}
|
||||
}
|
||||
|
||||
if defaultDisplay == nil {
|
||||
// If no DDC capable display was detected
|
||||
let item = NSMenuItem()
|
||||
item.title = "No supported display found"
|
||||
item.isEnabled = false
|
||||
monitorItems.append(item)
|
||||
statusMenu.insertItem(item, at: 0)
|
||||
}
|
||||
}
|
||||
|
||||
func acquirePrivileges() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue