Fix problem with device views sometimes not updating after sync_booklists.

This commit is contained in:
Charles Haley 2010-09-16 11:19:25 +01:00
parent db77526f70
commit 9f25063ad5

View File

@ -1230,7 +1230,7 @@ class DeviceMixin(object): # {{{
self.location_manager.update_devices(cp, fs,
self.device_manager.device.icon)
# reset the views so that up-to-date info is shown. These need to be
# here because the sony driver updates collections in sync_booklists
# here because some drivers update collections in sync_booklists
self.memory_view.reset()
self.card_a_view.reset()
self.card_b_view.reset()
@ -1470,6 +1470,7 @@ class DeviceMixin(object): # {{{
if update_metadata:
if self.device_manager.is_device_connected:
self.device_manager.sync_booklists(None, booklists)
self.device_manager.sync_booklists(
Dispatcher(self.metadata_synced), booklists)
# }}}