1
0
mirror of https://github.com/yattee/yattee.git synced 2025-01-10 11:30:32 +05:30

Close fullscreen and restore portrait on closing player

This commit is contained in:
Arkadiusz Fal 2022-03-27 21:17:52 +02:00
parent 8a46299bc4
commit 08ae9d2f99

View File

@ -129,8 +129,15 @@ final class PlayerModel: ObservableObject {
} }
func hide() { func hide() {
controls.playingFullscreen = false
presentingPlayer = false presentingPlayer = false
playerNavigationLinkActive = false playerNavigationLinkActive = false
#if os(iOS)
if Defaults[.lockPortraitWhenBrowsing] {
Orientation.lockOrientation(.portrait, andRotateTo: .portrait)
}
#endif
} }
func togglePlayer() { func togglePlayer() {