mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
Fix optional use
This commit is contained in:
parent
07b6649f26
commit
1744210615
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user