This commit is contained in:
Kovid Goyal 2023-03-09 09:19:07 +05:30
parent ae7289b26c
commit e5cbf7d340
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1008,11 +1008,12 @@ class TagsView(QTreeView): # {{{
if tag is None:
cm = self.context_menu
cm.addSeparator()
sm = cm.addAction(_('Change {} category icon').format(category),
acategory = category.replace('&', '&&')
sm = cm.addAction(_('Change {} category icon').format(acategory),
partial(self.context_menu_handler, action='set_icon',
key=key, category=category))
sm.setIcon(QIcon.ic('icon_choose.png'))
sm = cm.addAction(_('Restore {} category default icon').format(category),
sm = cm.addAction(_('Restore {} category default icon').format(acategory),
partial(self.context_menu_handler, action='clear_icon',
key=key, category=category))
sm.setIcon(QIcon.ic('edit-clear.png'))