mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 12:13:37 +02:00
Fix getting device GUI name in the GUI to not use the classmethod, as some drivers (MTP) require it to be an instance method.
This commit is contained in:
parent
f9dec96a16
commit
bc7de03717
1 changed files with 1 additions and 1 deletions
|
|
@ -977,7 +977,7 @@ def device_detected(self, connected, device_kind):
|
|||
self.set_default_thumbnail(\
|
||||
self.device_manager.device.THUMBNAIL_HEIGHT)
|
||||
self.status_bar.show_message(_('Device: ')+\
|
||||
self.device_manager.device.__class__.get_gui_name()+\
|
||||
self.device_manager.device.get_gui_name()+\
|
||||
_(' detected.'), 3000)
|
||||
self.device_connected = device_kind
|
||||
self.library_view.set_device_connected(self.device_connected)
|
||||
|
|
|
|||
Loading…
Reference in a new issue