Fixed crash

This commit is contained in:
Rasmus Krämer 2022-05-03 15:01:30 +02:00
parent 9a81fc3688
commit 0708133779
No known key found for this signature in database
GPG key ID: EC9E510611BFDAA2
4 changed files with 12 additions and 7 deletions

View file

@ -36,7 +36,11 @@ class PlayerHandler {
public static var paused: Bool {
get {
return player?.rate == 0.0
guard let player = player else {
return true
}
return player.rate == 0.0
}
set(paused) {
if paused {