aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/ServerView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/macOS/ServerView.swift')
-rw-r--r--Hotline/macOS/ServerView.swift6
1 files changed, 5 insertions, 1 deletions
diff --git a/Hotline/macOS/ServerView.swift b/Hotline/macOS/ServerView.swift
index e342f73..89f353b 100644
--- a/Hotline/macOS/ServerView.swift
+++ b/Hotline/macOS/ServerView.swift
@@ -224,7 +224,11 @@ struct ServerView: View {
connectAddress = server.address
connectLogin = server.login
connectPassword = server.password
- connectToServer()
+
+ // Connect to server automatically unless the option key is held down.
+ if !NSEvent.modifierFlags.contains(.option) {
+ connectToServer()
+ }
}
.focusedSceneValue(\.activeHotlineModel, model)
.focusedSceneValue(\.activeServerState, state)