mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
prioritize marked over suspended
'Many of them are from earlier grammar lessons where I didn't know several vocabulary words, so during reviews I suspend those cards. Others are leeches. Occasionally I go through the list, and mark those that I'm ready to study. Then I filter on marked, and do edit->reschedule. So during this process it's hard to know which suspended cards I've marked already.'
This commit is contained in:
parent
dddaefd72a
commit
2a9c5c5229
1 changed files with 7 additions and 8 deletions
|
@ -285,14 +285,13 @@ class StatusDelegate(QItemDelegate):
|
||||||
# in the the middle of a reset; return nothing so this row is not
|
# in the the middle of a reset; return nothing so this row is not
|
||||||
# rendered until we have a chance to reset the model
|
# rendered until we have a chance to reset the model
|
||||||
return
|
return
|
||||||
if c.queue == -1:
|
col = None
|
||||||
# custom render
|
if c.note().hasTag("Marked"):
|
||||||
brush = QBrush(QColor(COLOUR_SUSPENDED))
|
col = COLOUR_MARKED
|
||||||
painter.save()
|
elif c.queue == -1:
|
||||||
painter.fillRect(option.rect, brush)
|
col = COLOUR_SUSPENDED
|
||||||
painter.restore()
|
if col:
|
||||||
elif c.note().hasTag("Marked"):
|
brush = QBrush(QColor(col))
|
||||||
brush = QBrush(QColor(COLOUR_MARKED))
|
|
||||||
painter.save()
|
painter.save()
|
||||||
painter.fillRect(option.rect, brush)
|
painter.fillRect(option.rect, brush)
|
||||||
painter.restore()
|
painter.restore()
|
||||||
|
|
Loading…
Reference in a new issue