mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Show the ignored devices panel when configuring the MTP plugin with no device connected
This commit is contained in:
parent
3be38f9706
commit
eec37af75b
@ -163,7 +163,7 @@ class IgnoredDevices(QWidget): # {{{
|
||||
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 @@ class MTPConfig(QTabWidget):
|
||||
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…
x
Reference in New Issue
Block a user