Fix automatically-buried cards not being included in toggle bury

This commit is contained in:
Damien Elmes 2023-02-22 13:12:35 +10:00
parent a886e59e0a
commit d1004ddcfd

View file

@ -878,7 +878,9 @@ class Browser(QMainWindow):
def _update_toggle_bury_action(self) -> None:
is_buried = bool(
self.current_card and self.current_card.queue == QUEUE_TYPE_MANUALLY_BURIED
self.current_card
and self.current_card.queue
in (QUEUE_TYPE_MANUALLY_BURIED, QUEUE_TYPE_SIBLING_BURIED)
)
self.form.action_toggle_bury.setChecked(is_buried)