Skip to content

Commit

Permalink
Ensure visible section stays enabled when Ice icon is hidden
Browse files Browse the repository at this point in the history
Fixes #224
  • Loading branch information
jordanbaird committed Jul 10, 2024
1 parent f706dd8 commit 465bd76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Ice/MenuBar/MenuBarSection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ final class MenuBarSection: ObservableObject {
}

var isEnabled: Bool {
controlItem.isAddedToMenuBar
if case .visible = name {
// visible section should always be enabled
return true
}
return controlItem.isAddedToMenuBar
}

init(name: Name, controlItem: ControlItem) {
Expand Down

0 comments on commit 465bd76

Please sign in to comment.