mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 13:50:32 +05:30
Fix fullscreen exit
This commit is contained in:
parent
15f3e11a78
commit
6ddf1113bf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user