Fix optional use

This commit is contained in:
Arkadiusz Fal 2022-09-04 17:19:33 +02:00
parent 07b6649f26
commit 1744210615

View File

@ -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
}