summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a538004)
raw | patch | inline | side by side (parent: a538004)
author | Max Kellermann <max@duempel.org> | |
Wed, 30 Sep 2009 19:17:19 +0000 (21:17 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Wed, 30 Sep 2009 19:17:19 +0000 (21:17 +0200) |
This reloads the output list from MPD.
src/screen_outputs.c | patch | blob | history |
diff --git a/src/screen_outputs.c b/src/screen_outputs.c
index 7f19ce283fe3c876a971cccb051417d91c7f1f03..c40f470997e15c7d3bb74bb782358c340e229d97 100644 (file)
--- a/src/screen_outputs.c
+++ b/src/screen_outputs.c
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;