Skip to content

Commit db0ea63

Browse files
committed
wip
1 parent db521c8 commit db0ea63

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Spaceman/Helpers/SpaceSwitcher.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class SpaceSwitcher {
7777
alert.addButton(withTitle: "Dismiss")
7878
alert.addButton(withTitle: "System \(settingsTitle)...")
7979
let response = alert.runModal()
80+
//NSApp.stopModal()
8081
if (response == .alertSecondButtonReturn) {
8182
let task = Process()
8283
task.launchPath = "/usr/bin/open"

Spaceman/View/StatusBar.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class StatusBar: NSObject, NSMenuDelegate {
7474
guard let event = NSApp.currentEvent else {
7575
return
7676
}
77-
DispatchQueue.main.async {
77+
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
7878
if event.type == .rightMouseDown {
7979
// Show the menu on right-click
8080
if let sbMenu = self.statusBarMenu {
@@ -95,7 +95,6 @@ class StatusBar: NSObject, NSMenuDelegate {
9595
} else {
9696
print("Other event: \(event.type)")
9797
}
98-
sbButton.highlight(false)
9998
}
10099
}
101100

0 commit comments

Comments
 (0)