mirror of
https://github.com/yattee/yattee.git
synced 2026-05-14 11:25:02 +00:00
Add tvOS setting to close video with Menu button
When enabled, the Siri remote Menu button stops playback and clears the queue instead of only collapsing the player, and the explicit top-bar close (X) button is hidden.
This commit is contained in:
@@ -240,7 +240,7 @@ private struct BehaviorSection: View {
|
||||
@Bindable var settings: SettingsManager
|
||||
|
||||
var body: some View {
|
||||
Section(String(localized: "settings.playback.behavior.header")) {
|
||||
Section {
|
||||
PlatformMenuPicker(
|
||||
String(localized: "settings.playback.resumeAction"),
|
||||
selection: $settings.resumeAction
|
||||
@@ -256,6 +256,21 @@ private struct BehaviorSection: View {
|
||||
isOn: $settings.backgroundPlaybackEnabled
|
||||
)
|
||||
#endif
|
||||
|
||||
#if os(tvOS)
|
||||
Toggle(
|
||||
String(localized: "settings.playback.tvOSMenuButtonClosesVideo"),
|
||||
isOn: $settings.tvOSMenuButtonClosesVideo
|
||||
)
|
||||
#endif
|
||||
} header: {
|
||||
Text(String(localized: "settings.playback.behavior.header"))
|
||||
} footer: {
|
||||
#if os(tvOS)
|
||||
Text(String(localized: "settings.playback.tvOSMenuButtonClosesVideo.footer"))
|
||||
#else
|
||||
EmptyView()
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user