mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-03 09:34:51 +02:00
Fixed crash
This commit is contained in:
parent
9a81fc3688
commit
0708133779
4 changed files with 12 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue