mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-25 14:03:32 +02:00
Fix bug #5754 - extra customization problems
This commit is contained in:
parent
468cc178d5
commit
db7474d6f6
2 changed files with 5 additions and 3 deletions
|
|
@ -143,10 +143,11 @@ def sync_booklists(self, booklists, end_session=True):
|
|||
if booklists[i] is not None:
|
||||
blists[i] = booklists[i]
|
||||
opts = self.settings()
|
||||
collections = ['series', 'tags']
|
||||
if opts.extra_customization:
|
||||
collections = [x.strip() for x in
|
||||
opts.extra_customization.split(',')]
|
||||
else:
|
||||
collections = []
|
||||
debug_print('PRS505: collection fields:', collections)
|
||||
c.update(blists, collections)
|
||||
c.write()
|
||||
|
|
|
|||
|
|
@ -38,9 +38,10 @@ def __init__(self, settings, all_formats, supports_subdirs,
|
|||
self.opt_read_metadata.setChecked(self.settings.read_metadata)
|
||||
else:
|
||||
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.opt_extra_customization.setText(settings.extra_customization)
|
||||
if settings.extra_customization:
|
||||
self.opt_extra_customization.setText(settings.extra_customization)
|
||||
else:
|
||||
self.extra_customization_label.setVisible(False)
|
||||
self.opt_extra_customization.setVisible(False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue