mirror of
https://github.com/yattee/yattee.git
synced 2025-04-27 23:40:35 +05:30
Pause on hiding player by default only on tvOS
This commit is contained in:
parent
208ba623e5
commit
0ed48bb5f9
@ -5,6 +5,12 @@ import Foundation
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
extension Defaults.Keys {
|
extension Defaults.Keys {
|
||||||
|
#if os(tvOS)
|
||||||
|
static let defaultForPauseOnHidingPlayer = true
|
||||||
|
#else
|
||||||
|
static let defaultForPauseOnHidingPlayer = false
|
||||||
|
#endif
|
||||||
|
|
||||||
static let kavinPipedInstanceID = "kavin-piped"
|
static let kavinPipedInstanceID = "kavin-piped"
|
||||||
static let instances = Key<[Instance]>("instances", default: [
|
static let instances = Key<[Instance]>("instances", default: [
|
||||||
.init(
|
.init(
|
||||||
@ -49,7 +55,7 @@ extension Defaults.Keys {
|
|||||||
#if !os(tvOS)
|
#if !os(tvOS)
|
||||||
static let commentsPlacement = Key<CommentsPlacement>("commentsPlacement", default: .separate)
|
static let commentsPlacement = Key<CommentsPlacement>("commentsPlacement", default: .separate)
|
||||||
#endif
|
#endif
|
||||||
static let pauseOnHidingPlayer = Key<Bool>("pauseOnHidingPlayer", default: true)
|
static let pauseOnHidingPlayer = Key<Bool>("pauseOnHidingPlayer", default: defaultForPauseOnHidingPlayer)
|
||||||
|
|
||||||
static let closePiPOnNavigation = Key<Bool>("closePiPOnNavigation", default: false)
|
static let closePiPOnNavigation = Key<Bool>("closePiPOnNavigation", default: false)
|
||||||
static let closePiPOnOpeningPlayer = Key<Bool>("closePiPOnOpeningPlayer", default: false)
|
static let closePiPOnOpeningPlayer = Key<Bool>("closePiPOnOpeningPlayer", default: false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user