mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Small improvement on previous commit: only offer changing the search folder icon if search is hierarchical.
This commit is contained in:
parent
e7d69a0ee0
commit
155d18f84d
@ -1016,7 +1016,7 @@ class TagsView(QTreeView): # {{{
|
||||
partial(self.context_menu_handler, action='clear_icon',
|
||||
key=key, category=category))
|
||||
sm.setIcon(QIcon.ic('edit-clear.png'))
|
||||
if key == 'search':
|
||||
if key == 'search' and 'search' in self.db.new_api.pref('categories_using_hierarchy', []):
|
||||
sm = cm.addAction(_('Change Saved searches folder icon'),
|
||||
partial(self.context_menu_handler, action='set_icon',
|
||||
key='search_folder:', category=_('Saved searches folder')))
|
||||
|
Loading…
x
Reference in New Issue
Block a user