mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Add the device_connection_changed signal
This commit is contained in:
parent
204b952892
commit
1267df3a69
@ -608,6 +608,7 @@ class DeviceMenu(QMenu): # {{{
|
||||
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 @@ class DeviceMixin(object): # {{{
|
||||
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…
x
Reference in New Issue
Block a user