From 17442106159f9a668e26be6e264b545a32c3f6cc Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 4 Sep 2022 17:19:33 +0200 Subject: [PATCH] Fix optional use --- Model/Player/Backends/MPVBackend.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Player/Backends/MPVBackend.swift b/Model/Player/Backends/MPVBackend.swift index 520b007c..9868bce9 100644 --- a/Model/Player/Backends/MPVBackend.swift +++ b/Model/Player/Backends/MPVBackend.swift @@ -356,7 +356,7 @@ final class MPVBackend: PlayerBackend { } private func updateControlsIsPlaying() { - guard model.activeBackend == .mpv else { return } + guard model?.activeBackend == .mpv else { return } DispatchQueue.main.async { [weak self] in self?.controls?.isPlaying = self?.isPlaying ?? false }