From 12f840536275ccebe2f382fb1ca40019b16b10f6 Mon Sep 17 00:00:00 2001 From: Louie S Date: Sat, 16 Sep 2023 09:36:14 -0400 Subject: Optional due date; urls working --- assignment-list.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'assignment-list.py') diff --git a/assignment-list.py b/assignment-list.py index 673a209..06fe806 100755 --- a/assignment-list.py +++ b/assignment-list.py @@ -39,6 +39,10 @@ class AssignmentList(QMainWindow): self.add_group_act = QAction("Add Group", self) self.add_group_act.triggered.connect(self.addGroup) edit_menu.addAction(self.add_group_act) + edit_menu.addSeparator() + self.clean_hidden_act = QAction("Permanently Delete Removed Groups and Entries", self) + self.clean_hidden_act.triggered.connect(self.cleanHidden) + edit_menu.addAction(self.clean_hidden_act) about_act = QAction("About", self) about_act.triggered.connect(self.aboutDialog) @@ -146,6 +150,13 @@ class AssignmentList(QMainWindow): Globals.entries = list(filter(lambda e: e.id != id, Globals.entries)) self.drawGroups() + def cleanHidden(self): + """ + Permanently delete removed groups and entries from db + """ + # TODO consider creating a warning dialogue for this + DB.cleanHidden() + def drawGroups(self): """ Redraw the groups_hbox -- cgit