From 4d19720a969c5124b039103fdcc395befff6c902 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Tue, 7 Jun 2022 23:22:50 +0200 Subject: [PATCH] Pause on hiding player by default only on tvOS --- Shared/Defaults.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Shared/Defaults.swift b/Shared/Defaults.swift index 0a7a3d95..e34291cf 100644 --- a/Shared/Defaults.swift +++ b/Shared/Defaults.swift @@ -5,6 +5,12 @@ import Foundation #endif extension Defaults.Keys { + #if os(tvOS) + static let defaultForPauseOnHidingPlayer = true + #else + static let defaultForPauseOnHidingPlayer = false + #endif + static let kavinPipedInstanceID = "kavin-piped" static let instances = Key<[Instance]>("instances", default: [ .init( @@ -49,7 +55,7 @@ extension Defaults.Keys { #if !os(tvOS) static let commentsPlacement = Key("commentsPlacement", default: .separate) #endif - static let pauseOnHidingPlayer = Key("pauseOnHidingPlayer", default: true) + static let pauseOnHidingPlayer = Key("pauseOnHidingPlayer", default: defaultForPauseOnHidingPlayer) static let closePiPOnNavigation = Key("closePiPOnNavigation", default: false) static let closePiPOnOpeningPlayer = Key("closePiPOnOpeningPlayer", default: false)