mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Fix drawing state issues
This commit is contained in:
@@ -502,7 +502,7 @@ final class MPVBackend: PlayerBackend {
|
||||
}
|
||||
|
||||
func didChangeTo() {
|
||||
setNeedsDrawing(model.presentingPlayer)
|
||||
setNeedsDrawing(true)
|
||||
|
||||
if model.musicMode {
|
||||
startMusicMode()
|
||||
|
@@ -249,6 +249,7 @@ final class PlayerModel: ObservableObject {
|
||||
#endif
|
||||
|
||||
presentingPlayer = true
|
||||
setNeedsDrawing(true)
|
||||
|
||||
#if os(macOS)
|
||||
Windows.player.open()
|
||||
@@ -504,10 +505,7 @@ final class PlayerModel: ObservableObject {
|
||||
}
|
||||
#endif
|
||||
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
|
||||
guard let self = self else { return }
|
||||
self.backend.setNeedsDrawing(self.presentingPlayer)
|
||||
}
|
||||
backend.setNeedsDrawing(presentingPlayer)
|
||||
|
||||
controls.hide()
|
||||
|
||||
|
Reference in New Issue
Block a user