Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
kovidgoyal committed Jan 31, 2025
1 parent dce5f74 commit 6f8f15c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/calibre/gui2/preferences/look_feel_tabs/tb_icon_rules.py
Original file line number Diff line number Diff line change
@@ -92,7 +92,7 @@ def __init__(self, txt, table, all_values):
self._is_editable = False
super().__init__(('{' + _('template') + '}') if is_template else txt)
if not is_template and txt not in all_values:
icon = "dialog_error.png"
icon = 'dialog_error.png'
self.setToolTip(_("The value {} doesn't exist in the library").format(txt))
self._is_editable = True
else:
@@ -567,7 +567,7 @@ def edit_column(self):
column = idx.column()
if column in (VALUE_COLUMN, ICON_COLUMN, FOR_CHILDREN_COLUMN):
self.rules_table.edit(idx)
self.check_button_state(None) # Here to make buttons enabled/disabled
self.check_button_state(None) # Here to make buttons enabled/disabled

def delete_rule(self):
idx = self.rules_table.currentIndex()

0 comments on commit 6f8f15c

Please sign in to comment.