aboutsummaryrefslogtreecommitdiff
path: root/Hotline/MacApp.swift
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2025-10-25 16:46:52 -0700
committerDustin Mierau <dustin@mierau.me>2025-10-25 16:46:52 -0700
commit3b3b965842c47939ca54d0d1cbdf469346847f14 (patch)
tree22b5ee17d5fa8196a2d6b1bd95d7749c71cd69bc /Hotline/MacApp.swift
parent53686e30592fee566585e391738adee8b2ef2137 (diff)
Move chat input string to view model so its not lost when switching between tabs. Add chat search/filtering with suppport for live filtering.
Diffstat (limited to 'Hotline/MacApp.swift')
-rw-r--r--Hotline/MacApp.swift10
1 files changed, 5 insertions, 5 deletions
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