mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix annoying popup when unplugging PRS 500.
This commit is contained in:
parent
d32f4fb855
commit
0966bcdcc1
@ -229,7 +229,8 @@ class Main(MainWindow, Ui_MainWindow):
|
||||
else:
|
||||
self.device_connected = False
|
||||
self.job_manager.terminate_device_jobs()
|
||||
self.device_manager.device_removed()
|
||||
if self.device_manager:
|
||||
self.device_manager.device_removed()
|
||||
self.location_view.model().update_devices()
|
||||
self.action_sync.setEnabled(False)
|
||||
self.vanity.setText(self.vanity_template%dict(version=self.latest_version, device=' '))
|
||||
|
Loading…
x
Reference in New Issue
Block a user