mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug #5754 - extra customization problems
This commit is contained in:
parent
468cc178d5
commit
db7474d6f6
@ -143,10 +143,11 @@ class PRS505(USBMS):
|
|||||||
if booklists[i] is not None:
|
if booklists[i] is not None:
|
||||||
blists[i] = booklists[i]
|
blists[i] = booklists[i]
|
||||||
opts = self.settings()
|
opts = self.settings()
|
||||||
collections = ['series', 'tags']
|
|
||||||
if opts.extra_customization:
|
if opts.extra_customization:
|
||||||
collections = [x.strip() for x in
|
collections = [x.strip() for x in
|
||||||
opts.extra_customization.split(',')]
|
opts.extra_customization.split(',')]
|
||||||
|
else:
|
||||||
|
collections = []
|
||||||
debug_print('PRS505: collection fields:', collections)
|
debug_print('PRS505: collection fields:', collections)
|
||||||
c.update(blists, collections)
|
c.update(blists, collections)
|
||||||
c.write()
|
c.write()
|
||||||
|
@ -38,9 +38,10 @@ class ConfigWidget(QWidget, Ui_ConfigWidget):
|
|||||||
self.opt_read_metadata.setChecked(self.settings.read_metadata)
|
self.opt_read_metadata.setChecked(self.settings.read_metadata)
|
||||||
else:
|
else:
|
||||||
self.opt_read_metadata.hide()
|
self.opt_read_metadata.hide()
|
||||||
if extra_customization_message and settings.extra_customization:
|
if extra_customization_message:
|
||||||
self.extra_customization_label.setText(extra_customization_message)
|
self.extra_customization_label.setText(extra_customization_message)
|
||||||
self.opt_extra_customization.setText(settings.extra_customization)
|
if settings.extra_customization:
|
||||||
|
self.opt_extra_customization.setText(settings.extra_customization)
|
||||||
else:
|
else:
|
||||||
self.extra_customization_label.setVisible(False)
|
self.extra_customization_label.setVisible(False)
|
||||||
self.opt_extra_customization.setVisible(False)
|
self.opt_extra_customization.setVisible(False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user