mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 18:54:11 +00:00
Fix toggling player view
This commit is contained in:
@@ -165,7 +165,9 @@ final class PlayerModel: ObservableObject {
|
||||
}
|
||||
#endif
|
||||
|
||||
presentingPlayer = true
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.presentingPlayer = true
|
||||
}
|
||||
|
||||
#if os(macOS)
|
||||
Windows.player.open()
|
||||
@@ -174,8 +176,10 @@ final class PlayerModel: ObservableObject {
|
||||
}
|
||||
|
||||
func hide() {
|
||||
playingFullScreen = false
|
||||
presentingPlayer = false
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.playingFullScreen = false
|
||||
self?.presentingPlayer = false
|
||||
}
|
||||
|
||||
#if os(iOS)
|
||||
if Defaults[.lockPortraitWhenBrowsing] {
|
||||
|
Reference in New Issue
Block a user