aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/ServerView.swift
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2025-11-13 11:33:43 -0800
committerDustin Mierau <dustin@mierau.me>2025-11-13 11:33:43 -0800
commitda6a1f92caa31c85f9182bff4c29ceb5c72b3742 (patch)
treeca79509164efe287354ee221542a93a4919613b9 /Hotline/macOS/ServerView.swift
parent467b53f143a0c3d7328fe85e9d1215eceb9b150a (diff)
Don't show accounts in sidebar to reduce clutter. Admins can use menu bar or toolbar. More error handling.
Diffstat (limited to 'Hotline/macOS/ServerView.swift')
-rw-r--r--Hotline/macOS/ServerView.swift29
1 files changed, 16 insertions, 13 deletions
diff --git a/Hotline/macOS/ServerView.swift b/Hotline/macOS/ServerView.swift
index 1f85bd7..b8297fd 100644
--- a/Hotline/macOS/ServerView.swift
+++ b/Hotline/macOS/ServerView.swift
@@ -338,18 +338,19 @@ struct ServerView: View {
self.navigationList
.frame(maxWidth: .infinity)
.navigationSplitViewColumnWidth(min: 200, ideal: 250, max: 500)
- .toolbar {
- if self.model.access?.contains(.canOpenUsers) == true {
- ToolbarItem {
- Button {
- self.state.accountsShown = true
- } label: {
- Label("Manage Accounts", systemImage: "gear")
- }
- .help("Manage Accounts")
- }
- }
- }
+ .toolbar(removing: .sidebarToggle)
+// .toolbar {
+// if self.model.access?.contains(.canOpenUsers) == true {
+// ToolbarItem(placement: .primaryAction) {
+// Button {
+// self.state.accountsShown = true
+// } label: {
+// Label("Manage Accounts", systemImage: "gear")
+// }
+// .help("Manage Accounts")
+// }
+// }
+// }
} detail: {
switch state.selection {
case .chat:
@@ -388,7 +389,9 @@ struct ServerView: View {
}
}
}
- .toolbar(removing: .sidebarToggle)
+ .background {
+ Color.red
+ }
}
// MARK: -