aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Application-macOS.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/Application-macOS.swift')
-rw-r--r--Hotline/Application-macOS.swift4
1 files changed, 2 insertions, 2 deletions
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)
}
}