add MPD::Connection::Toggle() and throw away MPD::Connection::Execute()

This commit is contained in:
Andrzej Rybczak
2009-09-23 05:47:51 +02:00
parent d2f516d15c
commit 0d9f6fab7d
4 changed files with 14 additions and 28 deletions

View File

@@ -395,7 +395,7 @@ int main(int argc, char *argv[])
&& mouse_event.y == (Config.new_design ? 1 : LINES-1) && mouse_event.x < 9
) // playing/paused
{
Mpd.Pause();
Mpd.Toggle();
UpdateStatusImmediately = 1;
}
else if ((mouse_event.bstate & BUTTON2_PRESSED || mouse_event.bstate & BUTTON4_PRESSED)
@@ -722,7 +722,7 @@ int main(int argc, char *argv[])
}
else if (Keypressed(input, Key.Pause))
{
Mpd.Pause();
Mpd.Toggle();
UpdateStatusImmediately = 1;
}
else if (Keypressed(input, Key.SavePlaylist))