fix: avoid random delay after releasing shortcut (closes #563)

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-09-05 04:01:32 +09:00
1 parent 78d1d8f6fd
commit cbc4c39aa5
1 file changed
+1 -3
+1 -3
View File
@@ -137,9 +137,7 @@ class Window {
}
func focus() {
if application.pid == ProcessInfo.processInfo.processIdentifier {
App.app.showSecondaryWindow(App.app.window(withWindowNumber: Int(cgWindowId)))
} else if isWindowlessApp {
if isWindowlessApp {
if let bundleID = application.runningApplication.bundleIdentifier {
NSWorkspace.shared.launchApplication(withBundleIdentifier: bundleID, additionalEventParamDescriptor: nil, launchIdentifier: nil)
} else {