mirror of
https://github.com/yattee/yattee.git
synced 2025-01-09 19:10:32 +05:30
Close fullscreen and restore portrait on closing player
This commit is contained in:
parent
0e78b1dc23
commit
a09fc36ad3
@ -131,8 +131,15 @@ final class PlayerModel: ObservableObject {
|
||||
}
|
||||
|
||||
func hide() {
|
||||
controls.playingFullscreen = false
|
||||
presentingPlayer = false
|
||||
playerNavigationLinkActive = false
|
||||
|
||||
#if os(iOS)
|
||||
if Defaults[.lockPortraitWhenBrowsing] {
|
||||
Orientation.lockOrientation(.portrait, andRotateTo: .portrait)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
func togglePlayer() {
|
||||
|
Loading…
Reference in New Issue
Block a user