diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-01-17 23:18:27 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-01-17 23:18:27 -0800 |
| commit | 1b303803e53dbeb24dab1a7c714d71ee14f002db (patch) | |
| tree | 4616861b23642d26c9b58b5925315232c1fdb975 /Hotline/Application.swift | |
| parent | 8e85fbbdadcb993cd270ff4bf60d2280b9e7ad56 (diff) | |
Added server and tracker bookmarks. Reordering in Servers window. Delete. All stored securely in Keychain.
Diffstat (limited to 'Hotline/Application.swift')
| -rw-r--r-- | Hotline/Application.swift | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Hotline/Application.swift b/Hotline/Application.swift index fdada40..a8b4098 100644 --- a/Hotline/Application.swift +++ b/Hotline/Application.swift @@ -14,6 +14,7 @@ struct Application: App { @State private var preferences = Prefs() @State private var soundEffects = SoundEffectPlayer() + @State private var bookmarks = Bookmarks() @FocusedValue(\.activeHotlineModel) private var activeHotline: Hotline? @FocusedValue(\.activeServerState) private var activeServerState: ServerState? @@ -29,6 +30,7 @@ struct Application: App { Window("Servers", id: "servers") { TrackerView() .frame(minWidth: 250, minHeight: 250) + .environment(bookmarks) } .keyboardShortcut(.init(.init("R"), modifiers: .command)) .defaultSize(width: 700, height: 550) @@ -37,9 +39,10 @@ struct Application: App { // MARK: Server Window WindowGroup(id: "server", for: Server.self) { server in ServerView(server: server) - .frame(minWidth: 400, minHeight: 300) + .frame(minWidth: 430, minHeight: 300) .environment(preferences) .environment(soundEffects) + .environment(bookmarks) } defaultValue: { Server(name: nil, description: nil, address: "") } |