mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-25 16:03:12 +02:00
Add the device_connection_changed signal
This commit is contained in:
parent
204b952892
commit
1267df3a69
1 changed files with 2 additions and 0 deletions
|
|
@ -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):
|
||||
'''
|
||||
|
|
|
|||
Loading…
Reference in a new issue