1
1
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:
Daniel Barber 2019-02-02 12:47:14 -05:00
parent 9ec70e76b0
commit 909f8f68fb
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -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)
} }
} }