mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Don't draw player when in background
This commit is contained in:
@@ -446,6 +446,8 @@ final class PlayerModel: ObservableObject {
|
||||
}
|
||||
#else
|
||||
func handleEnterForeground() {
|
||||
setNeedsDrawing(true)
|
||||
|
||||
guard closePiPAndOpenPlayerOnEnteringForeground, playingInPictureInPicture else {
|
||||
return
|
||||
}
|
||||
@@ -454,6 +456,10 @@ final class PlayerModel: ObservableObject {
|
||||
closePiP()
|
||||
}
|
||||
|
||||
func handleEnterBackground() {
|
||||
setNeedsDrawing(false)
|
||||
}
|
||||
|
||||
func enterFullScreen() {
|
||||
guard !controls.playingFullscreen else {
|
||||
return
|
||||
|
Reference in New Issue
Block a user