Add the device_connection_changed signal

This commit is contained in:
Charles Haley 2011-04-18 21:16:01 +01:00
parent 204b952892
commit 1267df3a69

View file

@ -608,6 +608,7 @@ def enable_device_actions(self, enable, card_prefix=(None, None),
class DeviceMixin(object): # {{{
device_metadata_available = pyqtSignal()
device_connection_changed = pyqtSignal(object)
def __init__(self):
self.device_error_dialog = error_dialog(self, _('Error'),
@ -755,6 +756,7 @@ def device_detected(self, connected, device_kind):
self.location_manager.update_devices()
self.library_view.set_device_connected(self.device_connected)
self.refresh_ondevice()
self.device_connection_changed.emit(connected)
def info_read(self, job):
'''