Fix orientation lock when closing player

This commit is contained in:
Arkadiusz Fal 2022-06-14 23:20:36 +02:00
parent 4509b6229a
commit 97f040b3cb

View File

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