🔥 remove deprecated label case
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
a8918229c0
commit
3a0cc66fa4
2 changed files with 0 additions and 9 deletions
|
|
@ -110,13 +110,6 @@ public final class MenuBarAgent: NSObject {
|
|||
menuItem.isEnabled = true
|
||||
menu.addItem(menuItem)
|
||||
|
||||
case .label(let title):
|
||||
// Non-actionable info row. `action: nil` + autoenablesItems=false
|
||||
// (set above) renders it greyed and unclickable.
|
||||
let menuItem = NSMenuItem(title: title, action: nil, keyEquivalent: "")
|
||||
menuItem.isEnabled = false
|
||||
menu.addItem(menuItem)
|
||||
|
||||
case .separator:
|
||||
menu.addItem(.separator())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ import AppKit
|
|||
/// Represents a single item in a menu bar dropdown menu.
|
||||
public enum MenuBarItem {
|
||||
case action(title: String, key: String = "", action: () -> Void)
|
||||
/// A non-actionable, greyed-out status line (e.g. live counts/health).
|
||||
case label(title: String)
|
||||
case separator
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue