mirror of
https://github.com/bitgapp/eqMac.git
synced 2024-11-22 22:32:17 +03:00
fixed popover show/hide calls to get rid of blinks
This commit is contained in:
parent
c457760d62
commit
632dfadb5f
@ -80,12 +80,13 @@ class Popover: NSObject, NSPopoverDelegate {
|
||||
}
|
||||
|
||||
func show() {
|
||||
popover.show(relativeTo: NSZeroRect, of: statusItem.button, preferredEdge: .minY)
|
||||
NSApp.activate(ignoringOtherApps: true)
|
||||
popover.show(relativeTo: NSZeroRect, of: statusItem.button, preferredEdge: .minY)
|
||||
popover.becomeFirstResponder()
|
||||
}
|
||||
|
||||
func hide() {
|
||||
popover.resignFirstResponder()
|
||||
popover.close()
|
||||
statusItem.highlighted = false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user