mirror of
https://github.com/yattee/yattee.git
synced 2026-10-25 06:02:57 +00:00
Let the user hide the account pickers outside Settings
This commit is contained in:
@@ -492,8 +492,10 @@ struct SubscriptionsView: View {
|
||||
.toolbarTitleDisplayMode(.inlineLarge)
|
||||
#endif
|
||||
.toolbar {
|
||||
ToolbarItem(placement: viewOptionsPlacement) {
|
||||
DataContextSwitcherMenu()
|
||||
if appEnvironment?.settingsManager.showAccountPickers ?? true {
|
||||
ToolbarItem(placement: viewOptionsPlacement) {
|
||||
DataContextSwitcherMenu()
|
||||
}
|
||||
}
|
||||
ToolbarItem(placement: viewOptionsPlacement) {
|
||||
Button {
|
||||
@@ -907,7 +909,9 @@ struct SubscriptionsView: View {
|
||||
}
|
||||
.buttonStyle(.bordered)
|
||||
|
||||
DataContextSwitcherButton()
|
||||
if appEnvironment?.settingsManager.showAccountPickers ?? true {
|
||||
DataContextSwitcherButton()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user