Fix fullscreen exit

This commit is contained in:
Arkadiusz Fal 2023-05-29 15:54:23 +02:00
parent 15f3e11a78
commit 6ddf1113bf

View File

@ -236,16 +236,11 @@ final class PlayerModel: ObservableObject {
}
DispatchQueue.main.async { [weak self] in
Delay.by(0.3) {
self?.exitFullScreen(showControls: false)
}
#if os(iOS)
if Defaults[.lockPortraitWhenBrowsing] {
Orientation.lockOrientation(.portrait, andRotateTo: .portrait)
} else {
Orientation.lockOrientation(.allButUpsideDown)
}
#endif
#if os(macOS)
Windows.player.hide()
#endif