From 632dfadb5fa91e20baac7d2a59b9367ef27c394c Mon Sep 17 00:00:00 2001 From: Valerii Pavlov Date: Sat, 31 Oct 2020 08:51:32 +0400 Subject: [PATCH] fixed popover show/hide calls to get rid of blinks --- native/app/Source/UI/Popover.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/native/app/Source/UI/Popover.swift b/native/app/Source/UI/Popover.swift index 7a5c97e..0274339 100644 --- a/native/app/Source/UI/Popover.swift +++ b/native/app/Source/UI/Popover.swift @@ -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 }