Skip to content

Commit

Permalink
Fix display of loans that are due soon
Browse files Browse the repository at this point in the history
  • Loading branch information
ping committed Jul 26, 2023
1 parent 1c0ecb0 commit ea3af3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calibre-plugin/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def data(self, index, role):
return self.icons[PluginIcons.Clover]
if role == Qt.TextAlignmentRole and col >= 2:
return Qt.AlignCenter
if role == Qt.ForegroundRole and col == 3 and LibbyClient.is_renewable(loan):
if role == Qt.ForegroundRole and col == 2 and LibbyClient.is_renewable(loan):
return QColor(*hex_to_rgb(PluginColors.Red))
if role not in (Qt.DisplayRole, LibbyModel.DisplaySortRole):
return None
Expand Down

0 comments on commit ea3af3a

Please sign in to comment.