mirror of
https://github.com/yattee/yattee.git
synced 2024-12-25 06:53:42 +00:00
Close fullscreen and restore portrait on closing player
This commit is contained in:
parent
20876584e8
commit
011ca5dac2
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user