diff --git a/ftl/core/browsing.ftl b/ftl/core/browsing.ftl index 174febb66..f7e803bff 100644 --- a/ftl/core/browsing.ftl +++ b/ftl/core/browsing.ftl @@ -129,3 +129,4 @@ browsing-again-today = Again browsing-edited-today = Edited browsing-sidebar-due-today = Due browsing-sidebar-untagged = Untagged +browsing-sidebar-overdue = Overdue diff --git a/qt/aqt/sidebar.py b/qt/aqt/sidebar.py index 2cc02f16a..e934ce79f 100644 --- a/qt/aqt/sidebar.py +++ b/qt/aqt/sidebar.py @@ -640,7 +640,7 @@ class SidebarTreeView(QTreeView): name=TR.BROWSING_SIDEBAR_DUE_TODAY, icon=icon, type=type, - on_click=search(SearchTerm(card_state=SearchTerm.CARD_STATE_DUE)), + on_click=search(SearchTerm(due_on_day=0)), ) root.add_simple( name=TR.BROWSING_ADDED_TODAY, @@ -670,6 +670,15 @@ class SidebarTreeView(QTreeView): ) ), ) + root.add_simple( + name=TR.BROWSING_SIDEBAR_OVERDUE, + icon=icon, + type=type, + on_click=search( + SearchTerm(card_state=SearchTerm.CARD_STATE_DUE), + SearchTerm(negated=SearchTerm(due_on_day=0)), + ), + ) # Tree: Card State ###########################