From 038df124a9c9d0ec7e7f3a7387669d5273a5bf49 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Sun, 30 Jun 2024 17:46:30 -0700 Subject: A pass on icons. Sleeker toolbar window. Fix Accounts and News menu item disable states. Don't request banner from older servers. Cleanup News list display. --- Hotline/Application-macOS.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Hotline/Application-macOS.swift') diff --git a/Hotline/Application-macOS.swift b/Hotline/Application-macOS.swift index 63b127a..56ead01 100644 --- a/Hotline/Application-macOS.swift +++ b/Hotline/Application-macOS.swift @@ -214,7 +214,7 @@ struct Application: App { Button("Show News") { activeServerState?.selection = .news } - .disabled(activeHotline?.status != .loggedIn) + .disabled(activeHotline?.status != .loggedIn || (activeHotline?.serverVersion ?? 0) < 151) .keyboardShortcut(.init("2"), modifiers: .command) Button("Show Message Board") { activeServerState?.selection = .board @@ -229,7 +229,7 @@ struct Application: App { Button("Show Accounts") { activeServerState?.selection = .accounts } - .disabled(activeHotline?.status != .loggedIn || activeHotline?.access?.contains(.canOpenUsers) == false ) + .disabled(activeHotline?.status != .loggedIn || activeHotline?.access?.contains(.canOpenUsers) != true ) .keyboardShortcut(.init("5"), modifiers: .command) } } -- cgit