>From 375de1a85787e8d89580f96dd2152f259a22f611 Mon Sep 17 00:00:00 2001 From: Morgan Veyret Date: Wed, 22 Oct 2008 17:18:22 +0200 Subject: [PATCH] Fixed mpd-toggle-* commands to work with mpd-get-status. --- contrib/mpd.lisp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/contrib/mpd.lisp b/contrib/mpd.lisp index a2b6203..ca5dbca 100644 --- a/contrib/mpd.lisp +++ b/contrib/mpd.lisp @@ -502,11 +502,13 @@ Volume (mpd-send-command "pause 0")))) (defcommand mpd-toggle-random () () + (mpd-update-status) (if (mpd-shuffle-p) (mpd-send-command "random 0") (mpd-send-command "random 1"))) (defcommand mpd-toggle-repeat () () + (mpd-update-status) (if (mpd-repeating-p) (mpd-send-command "repeat 0") (mpd-send-command "repeat 1"))) -- 1.5.5.1