This commit is contained in:
Kovid Goyal 2011-05-18 20:45:12 -06:00
parent b0c0d40e6f
commit 1e4cab886d
2 changed files with 2 additions and 1 deletions

View File

@ -765,6 +765,7 @@ class DeviceMixin(object): # {{{
info, cp, fs = job.result
self.location_manager.update_devices(cp, fs,
self.device_manager.device.icon)
self.bars_manager.update_bars()
self.status_bar.device_connected(info[0])
self.device_manager.books(Dispatcher(self.metadata_downloaded))
@ -1199,7 +1200,6 @@ class DeviceMixin(object): # {{{
cp, fs = job.result
self.location_manager.update_devices(cp, fs,
self.device_manager.device.icon)
self.bars_manager.update_bars()
# reset the views so that up-to-date info is shown. These need to be
# here because some drivers update collections in sync_booklists
self.memory_view.reset()

View File

@ -319,6 +319,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
def refresh_gui(self, gui):
gui.bars_manager.init_bars()
gui.bars_manager.update_bars()
if __name__ == '__main__':