Leave the macOS toolbars to the sidebar's account switcher

This commit is contained in:
Arkadiusz Fal
2026-09-13 20:38:26 +02:00
parent 69d22cdc98
commit f2c4721e5a
4 changed files with 16 additions and 13 deletions

View File

@@ -492,11 +492,15 @@ struct SubscriptionsView: View {
.toolbarTitleDisplayMode(.inlineLarge)
#endif
.toolbar {
// No switcher on macOS: the sidebar row is the one persistent
// switcher surface there.
#if !os(macOS)
if DataContextSwitcherVisibility.showsPickers(in: appEnvironment) {
ToolbarItem(placement: viewOptionsPlacement) {
DataContextSwitcherMenu()
}
}
#endif
ToolbarItem(placement: viewOptionsPlacement) {
Button {
showViewOptions = true