Add "Pause when entering background" option (#198)

This commit is contained in:
Arkadiusz Fal
2022-06-30 11:46:20 +02:00
parent 12e427bcb8
commit f10aa1abd9
3 changed files with 16 additions and 2 deletions

View File

@@ -64,6 +64,9 @@ extension Defaults.Keys {
static let commentsPlacement = Key<CommentsPlacement>("commentsPlacement", default: .separate)
#endif
static let pauseOnHidingPlayer = Key<Bool>("pauseOnHidingPlayer", default: defaultForPauseOnHidingPlayer)
#if !os(macOS)
static let pauseOnEnteringBackground = Key<Bool>("pauseOnEnteringBackground", default: true)
#endif
static let closeLastItemOnPlaybackEnd = Key<Bool>("closeLastItemOnPlaybackEnd", default: false)
static let closePiPOnNavigation = Key<Bool>("closePiPOnNavigation", default: false)