We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cca887 commit e9181b0Copy full SHA for e9181b0
Ice/MenuBar/MenuBarSection.swift
@@ -154,7 +154,13 @@ final class MenuBarSection: ObservableObject {
154
/// Enables the hotkey associated with the section.
155
func enableHotkey() {
156
listener = hotkey?.onKeyDown { [weak self] in
157
- self?.toggle()
+ guard let self else {
158
+ return
159
+ }
160
+ toggle()
161
+ // prevent the section from automatically rehiding
162
+ // after mouse movement
163
+ menuBarManager?.showOnHoverPreventedByUserInteraction = !isHidden
164
}
165
166
0 commit comments