We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9190096 commit 17cf0e9Copy full SHA for 17cf0e9
TouchMemes/AppDelegate.swift
@@ -38,6 +38,8 @@ class AppDelegate: NSObject, NSApplicationDelegate
38
button.image = NSImage(named: NSImage.Name(rawValue: "MenuBarIcon"))
39
button.action = #selector(togglePopover)
40
}
41
+
42
+ popover.behavior = .transient
43
popover.contentViewController = PreferencesViewController.freshController()
44
popover.appearance = NSAppearance(named: .aqua)
45
@@ -51,6 +53,7 @@ class AppDelegate: NSObject, NSApplicationDelegate
51
53
52
54
55
func showPopover(sender: Any?) {
56
+ NSApplication.shared.activate(ignoringOtherApps: true)
57
if let button = statusItem.button {
58
popover.show(relativeTo: button.bounds, of: button, preferredEdge: NSRectEdge.minY)
59
0 commit comments