From 45f293c6fa747e835e14262ae6885c6e55cc1ae2 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Sat, 7 May 2011 18:53:01 -0400 Subject: [PATCH] ocarina: Refresh queue when changed I want the gui to be consistent with the internal state of the queue. --- ocarina/callbacks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ocarina/callbacks.py b/ocarina/callbacks.py index 062dece1..63607745 100644 --- a/ocarina/callbacks.py +++ b/ocarina/callbacks.py @@ -41,3 +41,7 @@ callbacks.on_load_playlist = on_load_playlist def on_load_library(): library.refresh() callbacks.on_new_source = on_load_library + +def on_queue_changed(): + queue.refresh() +callbacks.on_queue_changed = on_queue_changed