diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-05-16 17:40:27 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-05-16 17:40:27 -0700 |
| commit | 34fef2f5eca64586aace2c83723135c1eca346f7 (patch) | |
| tree | c1932cd9e17a4d8574952f43eee611fda4c09485 /Hotline/macOS/ServerView.swift | |
| parent | bba5122797f47f463c2949a79876e2514694ca02 (diff) | |
Move tracker items and bookmarks to SwiftData for iCloud sync.
Diffstat (limited to 'Hotline/macOS/ServerView.swift')
| -rw-r--r-- | Hotline/macOS/ServerView.swift | 5 |
1 files changed, 2 insertions, 3 deletions
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)) } } } |