ocarina: Refresh queue when changed

I want the gui to be consistent with the internal state of the queue.
This commit is contained in:
Bryan Schumaker 2011-05-07 18:53:01 -04:00
parent 5d336d4815
commit 45f293c6fa
1 changed files with 4 additions and 0 deletions

View File

@ -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