mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-30 22:43:47 +02:00
In the tag browser, ensure that "Change category icon" appears only on top-level nodes. This avoids confusion about what which items are affected in hierarchical categories.
This commit is contained in:
parent
7df3515b10
commit
8c56e6c291
1 changed files with 6 additions and 5 deletions
|
|
@ -650,11 +650,12 @@ def add_node_tree(tree_dict, m, path):
|
|||
partial(self.context_menu_handler, action='manage_searches',
|
||||
category=tag.name if tag else None))
|
||||
|
||||
self.context_menu.addSeparator()
|
||||
self.context_menu.addAction(_('Change category icon'),
|
||||
partial(self.context_menu_handler, action='set_icon', key=key))
|
||||
self.context_menu.addAction(_('Restore default icon'),
|
||||
partial(self.context_menu_handler, action='clear_icon', key=key))
|
||||
if tag is None:
|
||||
self.context_menu.addSeparator()
|
||||
self.context_menu.addAction(_('Change category icon'),
|
||||
partial(self.context_menu_handler, action='set_icon', key=key))
|
||||
self.context_menu.addAction(_('Restore default icon'),
|
||||
partial(self.context_menu_handler, action='clear_icon', key=key))
|
||||
|
||||
# Always show the User categories editor
|
||||
self.context_menu.addSeparator()
|
||||
|
|
|
|||
Loading…
Reference in a new issue