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