Skip to content

Commit e9181b0

Browse files
committed
Disable show-on-hover when showing with hotkey
1 parent 7cca887 commit e9181b0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Ice/MenuBar/MenuBarSection.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,13 @@ final class MenuBarSection: ObservableObject {
154154
/// Enables the hotkey associated with the section.
155155
func enableHotkey() {
156156
listener = hotkey?.onKeyDown { [weak self] in
157-
self?.toggle()
157+
guard let self else {
158+
return
159+
}
160+
toggle()
161+
// prevent the section from automatically rehiding
162+
// after mouse movement
163+
menuBarManager?.showOnHoverPreventedByUserInteraction = !isHidden
158164
}
159165
}
160166

0 commit comments

Comments
 (0)