More controls improvements

This commit is contained in:
Arkadiusz Fal
2022-05-28 01:23:50 +02:00
parent e3cf77e928
commit 3d015f2298
4 changed files with 36 additions and 25 deletions

View File

@@ -43,7 +43,7 @@ final class PlayerControlsModel: ObservableObject {
func handlePresentationChange() {
if presentingControls {
DispatchQueue.main.async { [weak self] in
self?.player.backend.startControlsUpdates()
self?.player?.backend.startControlsUpdates()
self?.resetTimer()
}
} else {