mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 22:35:30 +01:00
Make the new languages field not editable in the tag browser
This commit is contained in:
parent
c4404f52c8
commit
d086acf076
2 changed files with 3 additions and 3 deletions
|
|
@ -63,9 +63,9 @@ def __init__(self, data=None, category_icon=None, icon_map=None,
|
|||
self.category_key = category_key
|
||||
self.temporary = temporary
|
||||
self.tag = Tag(data, category=category_key,
|
||||
is_editable=category_key not in ['news', 'search', 'identifiers'],
|
||||
is_editable=category_key not in
|
||||
['news', 'search', 'identifiers', 'languages'],
|
||||
is_searchable=category_key not in ['search'])
|
||||
|
||||
elif self.type == self.TAG:
|
||||
self.icon_state_map[0] = QVariant(data.icon)
|
||||
self.tag = data
|
||||
|
|
|
|||
|
|
@ -1740,7 +1740,7 @@ def get_categories(self, sort='name', ids=None, icon_map=None):
|
|||
use_sort_as_name = True
|
||||
else:
|
||||
use_sort_as_name = False
|
||||
is_editable = category not in ['news', 'rating']
|
||||
is_editable = category not in ['news', 'rating', 'languages']
|
||||
categories[category] = [tag_class(formatter(r.n), count=r.c, id=r.id,
|
||||
avg=avgr(r), sort=r.s, icon=icon,
|
||||
tooltip=tooltip, category=category,
|
||||
|
|
|
|||
Loading…
Reference in a new issue