mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Do not attempt to display hierarchy in the tag browser if categories are not sorted by name.
This commit is contained in:
parent
2f122ce624
commit
4c8a0231f2
@ -425,7 +425,8 @@ class TagsModel(QAbstractItemModel): # {{{
|
||||
last_idx = -collapse
|
||||
category_is_hierarchical = not (
|
||||
key in ['authors', 'publisher', 'news', 'formats', 'rating'] or
|
||||
key not in self.db.prefs.get('categories_using_hierarchy', []))
|
||||
key not in self.db.prefs.get('categories_using_hierarchy', []) or
|
||||
config['sort_tags_by'] != 'name')
|
||||
|
||||
for idx,tag in enumerate(data[key]):
|
||||
components = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user