1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00

Failed to take into account the possibility that no song is playing

This commit is contained in:
Daniel Barber 2019-02-18 17:45:40 -05:00
parent 96e29943b3
commit 23acb49c24
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -114,8 +114,9 @@ class QueueViewController: NSViewController, NSOutlineViewDataSource, NSOutlineV
if oldSongRowPos >= 0 { if oldSongRowPos >= 0 {
queue[oldSongRowPos].isPlaying = false queue[oldSongRowPos].isPlaying = false
} }
if newSongRowPos >= 0 {
queue[newSongRowPos].isPlaying = true queue[newSongRowPos].isPlaying = true
}
} }
func outlineView(_ outlineView: NSOutlineView, numberOfChildrenOfItem item: Any?) -> Int { func outlineView(_ outlineView: NSOutlineView, numberOfChildrenOfItem item: Any?) -> Int {