From 34fef2f5eca64586aace2c83723135c1eca346f7 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Thu, 16 May 2024 17:40:27 -0700 Subject: Move tracker items and bookmarks to SwiftData for iCloud sync. --- Hotline/macOS/ServerView.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Hotline/macOS/ServerView.swift') diff --git a/Hotline/macOS/ServerView.swift b/Hotline/macOS/ServerView.swift index acd3ac2..64c3fbd 100644 --- a/Hotline/macOS/ServerView.swift +++ b/Hotline/macOS/ServerView.swift @@ -127,8 +127,7 @@ enum ServerNavigationType: Identifiable, Hashable, Equatable { } struct ServerView: View { - @Environment(SoundEffectPlayer.self) private var soundEffects: SoundEffectPlayer - @Environment(Bookmarks.self) private var bookmarks: Bookmarks + @Environment(BookmarksOld.self) private var bookmarks: BookmarksOld @Environment(\.dismiss) var dismiss @Environment(\.colorScheme) private var colorScheme @Environment(\.controlActiveState) private var controlActiveState @@ -335,7 +334,7 @@ struct ServerView: View { let password: String? = connectPassword.isEmpty ? nil : connectPassword if !host.isEmpty { - let _ = bookmarks.add(Bookmark(type: .server, name: name, address: host, port: port, login: login, password: password)) + let _ = bookmarks.add(BookmarkOld(type: .server, name: name, address: host, port: port, login: login, password: password)) } } } -- cgit