From bba5122797f47f463c2949a79876e2514694ca02 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Wed, 15 May 2024 10:06:19 -0700 Subject: Holding option when clicking server button in banner window now opens a connect to server window. --- Hotline/macOS/HotlinePanelView.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Hotline/macOS') diff --git a/Hotline/macOS/HotlinePanelView.swift b/Hotline/macOS/HotlinePanelView.swift index 69d00aa..9915e49 100644 --- a/Hotline/macOS/HotlinePanelView.swift +++ b/Hotline/macOS/HotlinePanelView.swift @@ -16,7 +16,13 @@ struct HotlinePanelView: View { HStack(spacing: 16) { Button { - openWindow(id: "servers") + if let event = NSApp.currentEvent, + event.modifierFlags.contains(.option) { + openWindow(id: "server") + } + else { + openWindow(id: "servers") + } } label: { Image(systemName: "globe.americas.fill") -- cgit