aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/HotlinePanelView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/macOS/HotlinePanelView.swift')
-rw-r--r--Hotline/macOS/HotlinePanelView.swift3
1 files changed, 1 insertions, 2 deletions
diff --git a/Hotline/macOS/HotlinePanelView.swift b/Hotline/macOS/HotlinePanelView.swift
index 9915e49..374e379 100644
--- a/Hotline/macOS/HotlinePanelView.swift
+++ b/Hotline/macOS/HotlinePanelView.swift
@@ -16,8 +16,7 @@ struct HotlinePanelView: View {
HStack(spacing: 16) {
Button {
- if let event = NSApp.currentEvent,
- event.modifierFlags.contains(.option) {
+ if NSEvent.modifierFlags.contains(.option) {
openWindow(id: "server")
}
else {