aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/Trackers/TrackerView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/macOS/Trackers/TrackerView.swift')
-rw-r--r--Hotline/macOS/Trackers/TrackerView.swift5
1 files changed, 5 insertions, 0 deletions
diff --git a/Hotline/macOS/Trackers/TrackerView.swift b/Hotline/macOS/Trackers/TrackerView.swift
index e0ca87d..0f598ca 100644
--- a/Hotline/macOS/Trackers/TrackerView.swift
+++ b/Hotline/macOS/Trackers/TrackerView.swift
@@ -157,6 +157,11 @@ struct TrackerView: View {
) {
self.toggleExpanded(for: bookmark)
}
+ .onAppear {
+ if bookmark.autoconnect, let server = bookmark.server {
+ openWindow(id: "server", value: server)
+ }
+ }
.tag(TrackerSelection.bookmark(bookmark))
if bookmark.type == .tracker && self.expandedTrackers.contains(bookmark) {