mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +01:00
parent
006d02a824
commit
0f8ffb3e01
@ -202,10 +202,12 @@ private extension GeneralPreferencesViewController {
|
||||
menu.addItem(NSMenuItem.separator())
|
||||
|
||||
for browser in allBrowsers {
|
||||
let item = NSMenuItem(title: browser.name!, action: nil, keyEquivalent: "")
|
||||
guard let name = browser.name else { continue }
|
||||
|
||||
let item = NSMenuItem(title: name, action: nil, keyEquivalent: "")
|
||||
item.representedObject = browser.bundleIdentifier
|
||||
|
||||
let icon = browser.icon!
|
||||
let icon = browser.icon ?? NSWorkspace.shared.icon(forFileType: kUTTypeApplicationBundle as String)
|
||||
icon.size = NSSize(width: 16.0, height: 16.0)
|
||||
item.image = browser.icon
|
||||
menu.addItem(item)
|
||||
|
Loading…
Reference in New Issue
Block a user