From 5c21e19c666db5d66f09482efb3dbd505ddc233b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Sep 2009 21:17:19 +0200 Subject: [PATCH] screen_outputs: implemented the SCREEN_UPDATE command This reloads the output list from MPD. --- src/screen_outputs.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/screen_outputs.c b/src/screen_outputs.c index 7f19ce2..c40f470 100644 --- a/src/screen_outputs.c +++ b/src/screen_outputs.c @@ -204,9 +204,19 @@ outputs_cmd(struct mpdclient *c, command_t cmd) return true; } - if (cmd == CMD_PLAY) { + switch (cmd) { + case CMD_PLAY: toggle_output(c, lw->selected); return true; + + case CMD_SCREEN_UPDATE: + clear_outputs_list(); + fill_outputs_list(c); + outputs_repaint(); + return true; + + default: + break; } return false; -- 2.30.2