From 1b303803e53dbeb24dab1a7c714d71ee14f002db Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Wed, 17 Jan 2024 23:18:27 -0800 Subject: Added server and tracker bookmarks. Reordering in Servers window. Delete. All stored securely in Keychain. --- Hotline/Application.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Hotline/Application.swift') 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: "") } -- cgit