1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 22:00:31 +05:30

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 DispatchQueue.main.async { [weak self] in
self?.exitFullScreen(showControls: false) 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) #if os(macOS)
Windows.player.hide() Windows.player.hide()
#endif #endif