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:
parent
96e29943b3
commit
23acb49c24
@ -114,8 +114,9 @@ class QueueViewController: NSViewController, NSOutlineViewDataSource, NSOutlineV
|
||||
if oldSongRowPos >= 0 {
|
||||
queue[oldSongRowPos].isPlaying = false
|
||||
}
|
||||
|
||||
queue[newSongRowPos].isPlaying = true
|
||||
if newSongRowPos >= 0 {
|
||||
queue[newSongRowPos].isPlaying = true
|
||||
}
|
||||
}
|
||||
|
||||
func outlineView(_ outlineView: NSOutlineView, numberOfChildrenOfItem item: Any?) -> Int {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user