Skip to content

Commit 3e67e70

Browse files
committed
Exclude .bkp tasks from list in new task dialog
1 parent 4504485 commit 3e67e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timetracker/task_dialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def run_task_dialog() -> (str, str):
1919
additional_minutes_entry = builder.get_object("additional_minutes_entry") # type: Gtk.Entry
2020

2121
completion_model = Gtk.ListStore(str)
22-
for task in Task.get_all():
22+
for task in (t for t in Task.get_all() if not t.name.endswith(".bkp")):
2323
completion_model.append([task.name])
2424

2525
completion = Gtk.EntryCompletion()

0 commit comments

Comments
 (0)