1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 05:40:32 +05:30

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() { private func updateControlsIsPlaying() {
guard model.activeBackend == .mpv else { return } guard model?.activeBackend == .mpv else { return }
DispatchQueue.main.async { [weak self] in DispatchQueue.main.async { [weak self] in
self?.controls?.isPlaying = self?.isPlaying ?? false self?.controls?.isPlaying = self?.isPlaying ?? false
} }