mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Only remove a song if we have a selection
This commit is contained in:
parent
92f894be94
commit
ea1793df51
@ -44,7 +44,9 @@ class QueueViewController: NSViewController {
|
|||||||
case NSEvent.keyCodeBS:
|
case NSEvent.keyCodeBS:
|
||||||
let queuePos = queueView.selectedRow
|
let queuePos = queueView.selectedRow
|
||||||
|
|
||||||
App.mpdClient.removeSong(at: queuePos)
|
if queuePos >= 0 {
|
||||||
|
App.mpdClient.removeSong(at: queuePos)
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
nextResponder?.keyDown(with: event)
|
nextResponder?.keyDown(with: event)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user