diff options
author | Louie S <louie@example.com> | 2023-09-16 09:36:14 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-09-16 09:36:14 -0400 |
commit | 11db353ea4cac33caccb005be7d4b72671f20ad9 (patch) | |
tree | 18b89d43ff41ef823404844f09bf06aee0f4b2ed /assignment-list.py | |
parent | f2ca02a9230621d0968b8df129051e332339b768 (diff) |
removing (hiding) groups working
Diffstat (limited to 'assignment-list.py')
-rwxr-xr-x | assignment-list.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/assignment-list.py b/assignment-list.py index a09a448..7b9762c 100755 --- a/assignment-list.py +++ b/assignment-list.py @@ -98,6 +98,7 @@ class AssignmentList(QMainWindow): """ # TODO might want to add a warning # TODO might want to make part of the a destructor in the Group class + DB.removeGroup(id) Globals.entries = list(filter(lambda e: e.parent_id != id, Globals.entries)) Globals.groups = list(filter(lambda g: g.id != id, Globals.groups)) self.drawGroups() @@ -138,6 +139,10 @@ class AssignmentList(QMainWindow): column_right = QVBoxLayout() for g in Globals.groups: + # skip if this group is set to hidden + if g.hidden: + continue + # Include buttons at the bottom to edit the group g_layout = g.buildLayout() buttons_hbox = QHBoxLayout() |