mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Fix crash on album end
This commit is contained in:
parent
3c9a18a9fe
commit
89b26c4b8a
@ -38,9 +38,10 @@ class QueueDataSource: NSObject, NSOutlineViewDataSource {
|
|||||||
}
|
}
|
||||||
if newSongRowPos >= 0 {
|
if newSongRowPos >= 0 {
|
||||||
queue[newSongRowPos].isPlaying = true
|
queue[newSongRowPos].isPlaying = true
|
||||||
}
|
|
||||||
|
|
||||||
currentSong = queue[newSongRowPos].song
|
currentSong = queue[newSongRowPos].song
|
||||||
|
} else {
|
||||||
|
currentSong = nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func setQueueIcon(_ state: MPDClient.MPDStatus.State) {
|
func setQueueIcon(_ state: MPDClient.MPDStatus.State) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user