Improve sections visibility

This commit is contained in:
Arkadiusz Fal
2022-11-11 20:34:20 +01:00
parent 4c2d473caa
commit fa0523d3c6
9 changed files with 71 additions and 53 deletions

View File

@@ -62,7 +62,9 @@ struct PlayerSettings: View {
private var sections: some View {
Group {
Section(header: SettingsHeader(text: "Playback".localized())) {
sourcePicker
if !accounts.isEmpty {
sourcePicker
}
pauseOnHidingPlayerToggle
#if !os(macOS)
pauseOnEnteringBackgroundToogle
@@ -97,9 +99,8 @@ struct PlayerSettings: View {
sidebarPicker
#endif
keywordsToggle
if !accounts.isDemo {
if !accounts.isEmpty {
keywordsToggle
returnYouTubeDislikeToggle
}
}