mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
commit
f0c1a9f171
@ -146,9 +146,12 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
||||
r('default_author_link', gprefs)
|
||||
|
||||
choices = set([k for k in db.field_metadata.all_field_keys()
|
||||
if db.field_metadata[k]['is_category'] and
|
||||
if (db.field_metadata[k]['is_category'] and
|
||||
(db.field_metadata[k]['datatype'] in ['text', 'series', 'enumeration']) and
|
||||
not db.field_metadata[k]['display'].get('is_names', False)])
|
||||
not db.field_metadata[k]['display'].get('is_names', False))
|
||||
or
|
||||
(db.field_metadata[k]['datatype'] in ['composite'] and
|
||||
db.field_metadata[k]['display'].get('make_category', False))])
|
||||
choices -= set(['authors', 'publisher', 'formats', 'news', 'identifiers'])
|
||||
choices |= set(['search'])
|
||||
self.opt_categories_using_hierarchy.update_items_cache(choices)
|
||||
|
Loading…
x
Reference in New Issue
Block a user