diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-05-15 10:06:19 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-05-15 10:06:19 -0700 |
| commit | bba5122797f47f463c2949a79876e2514694ca02 (patch) | |
| tree | 9f6fb7a92c441252cf25cd609e5c14bb8869eba2 /Hotline/macOS | |
| parent | 6d2fcd6e0f759406c7cbb4f9a0222fd2f839b1a1 (diff) | |
Holding option when clicking server button in banner window now opens a connect to server window.
Diffstat (limited to 'Hotline/macOS')
| -rw-r--r-- | Hotline/macOS/HotlinePanelView.swift | 8 |
1 files changed, 7 insertions, 1 deletions
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") |