mirror of
https://github.com/abue-ammar/tinycast.git
synced 2026-10-02 08:14:38 +08:00
Disarm hover highlight when opening menu to prevent unintended row selection
This commit is contained in:
@@ -63,6 +63,8 @@ final class MenuPanelController {
|
||||
hosting = view
|
||||
}
|
||||
self.parent = parent
|
||||
// Open disarmed: a menu opened by click lands under the pointer, which chose no row of it.
|
||||
core.palette.disarmHoverHighlight(pointerAt: NSEvent.mouseLocation)
|
||||
layout(corner: corner, parent: parent)
|
||||
guard panel.parent == nil else { return }
|
||||
parent.addChildWindow(panel, ordered: .above)
|
||||
|
||||
Reference in New Issue
Block a user