mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-18 05:33:59 +00:00
Minor code redundancy reduction
This commit is contained in:
@@ -696,11 +696,8 @@ class MetadataBox(QtWidgets.QTableWidget):
|
||||
self._set_item_value(new_item, self.tag_diff.new, name)
|
||||
|
||||
font = new_item.font()
|
||||
if self.tag_diff.tag_status(name) == TagStatus.REMOVED:
|
||||
font.setStrikeOut(True)
|
||||
else:
|
||||
font.setStrikeOut(False)
|
||||
|
||||
strikeout = self.tag_diff.tag_status(name) == TagStatus.REMOVED
|
||||
font.setStrikeOut(strikeout)
|
||||
new_item.setFont(font)
|
||||
|
||||
color = self.colors.get(self.tag_diff.tag_status(name),
|
||||
|
||||
Reference in New Issue
Block a user