From 3b3b965842c47939ca54d0d1cbdf469346847f14 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Sat, 25 Oct 2025 16:46:52 -0700 Subject: Move chat input string to view model so its not lost when switching between tabs. Add chat search/filtering with suppport for live filtering. --- Hotline/MacApp.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Hotline/MacApp.swift') diff --git a/Hotline/MacApp.swift b/Hotline/MacApp.swift index a91df52..0682c1d 100644 --- a/Hotline/MacApp.swift +++ b/Hotline/MacApp.swift @@ -270,15 +270,15 @@ struct Application: App { } .disabled(activeHotline?.status != .loggedIn) .keyboardShortcut(.init("1"), modifiers: .command) - Button("Show News") { - activeServerState?.selection = .news - } - .disabled(activeHotline?.status != .loggedIn || (activeHotline?.serverVersion ?? 0) < 151) - .keyboardShortcut(.init("2"), modifiers: .command) Button("Show Message Board") { activeServerState?.selection = .board } .disabled(activeHotline?.status != .loggedIn) + .keyboardShortcut(.init("2"), modifiers: .command) + Button("Show News") { + activeServerState?.selection = .news + } + .disabled(activeHotline?.status != .loggedIn || (activeHotline?.serverVersion ?? 0) < 151) .keyboardShortcut(.init("3"), modifiers: .command) Button("Show Files") { activeServerState?.selection = .files -- cgit