1
0
mirror of https://github.com/yattee/yattee.git synced 2025-04-27 15:30:33 +05:30

Fix orientation lock when closing player

This commit is contained in:
Arkadiusz Fal 2022-06-14 23:20:36 +02:00
parent 574df016f3
commit cb89c4d53d

View File

@ -142,6 +142,8 @@ final class PlayerModel: ObservableObject {
#if os(iOS)
if Defaults[.lockPortraitWhenBrowsing] {
Orientation.lockOrientation(.portrait, andRotateTo: .portrait)
} else {
Orientation.lockOrientation(.allButUpsideDown)
}
#endif
}