mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 18:43:20 +02:00
Show the ignored devices panel when configuring the MTP plugin with no device connected
This commit is contained in:
parent
3be38f9706
commit
eec37af75b
1 changed files with 2 additions and 2 deletions
|
|
@ -163,7 +163,7 @@ def __init__(self, devs, blacklist):
|
|||
self.l = l = QVBoxLayout()
|
||||
self.setLayout(l)
|
||||
self.la = la = QLabel('<p>'+_(
|
||||
'''Select the devices to be <b>ignored</b>. calibre will not
|
||||
'''Select the devices to be <b>ignored</b>. calibre <b>will not</b>
|
||||
connect to devices with a checkmark next to their names.'''))
|
||||
la.setWordWrap(True)
|
||||
l.addWidget(la)
|
||||
|
|
@ -386,7 +386,7 @@ def __init__(self, device, parent=None):
|
|||
self.device.prefs['blacklist'])
|
||||
self.addTab(self.igntab, _('Ignored devices'))
|
||||
|
||||
self.setCurrentIndex(0)
|
||||
self.setCurrentIndex(1 if msg else 0)
|
||||
|
||||
def ignore_device(self):
|
||||
self.igntab.ignore_device(self.device.current_serial_num)
|
||||
|
|
|
|||
Loading…
Reference in a new issue