mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Should be able to skip tracks while paused
This commit is contained in:
parent
9ec70e76b0
commit
909f8f68fb
@ -104,13 +104,13 @@ class MPDClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func sendNextTrack() {
|
func sendNextTrack() {
|
||||||
if getState() == .playing {
|
if [.playing, .paused].contains(getState()) {
|
||||||
mpd_run_next(connection)
|
mpd_run_next(connection)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendPreviousTrack() {
|
func sendPreviousTrack() {
|
||||||
if getState() == .playing {
|
if [.playing, .paused].contains(getState()) {
|
||||||
mpd_run_previous(connection)
|
mpd_run_previous(connection)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user