1
1
mirror of https://github.com/bitgapp/eqMac.git synced 2024-11-22 13:07:26 +03:00

fixed popover show/hide calls to get rid of blinks

This commit is contained in:
Valerii Pavlov 2020-10-31 08:51:32 +04:00 committed by Roman Kisil
parent c457760d62
commit 632dfadb5f

View File

@ -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
}