mirror of
https://github.com/yattee/yattee.git
synced 2026-10-24 05:32:53 +00:00
Withhold every account switcher until an account exists to offer
This commit is contained in:
@@ -492,7 +492,7 @@ struct SubscriptionsView: View {
|
||||
.toolbarTitleDisplayMode(.inlineLarge)
|
||||
#endif
|
||||
.toolbar {
|
||||
if appEnvironment?.settingsManager.showAccountPickers ?? true {
|
||||
if DataContextSwitcherVisibility.showsPickers(in: appEnvironment) {
|
||||
ToolbarItem(placement: viewOptionsPlacement) {
|
||||
DataContextSwitcherMenu()
|
||||
}
|
||||
@@ -909,7 +909,7 @@ struct SubscriptionsView: View {
|
||||
}
|
||||
.buttonStyle(.bordered)
|
||||
|
||||
if appEnvironment?.settingsManager.showAccountPickers ?? true {
|
||||
if DataContextSwitcherVisibility.showsPickers(in: appEnvironment) {
|
||||
DataContextSwitcherButton()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user