Skip to content

Commit

Permalink
Use Task.set_status to mark tasks as dismissed
Browse files Browse the repository at this point in the history
Calling Task.toggle_dismiss caused the task to reactivate if it was
already dismissed. (E.g., when selecting and dismissing deeply
nested task structures.)
  • Loading branch information
gycsaba96 authored and diegogangl committed Feb 26, 2025
1 parent 2e0fcb1 commit ec6af6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GTG/gtk/browser/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@ def on_mark_as_done(self, widget=None):

def on_dismiss_task(self, widget=None):
for task in self.get_pane().get_selection():
task.toggle_dismiss()
task.set_status(Status.DISMISSED)

def on_reopen_task(self, widget=None):
for task in self.get_pane().get_selection():
Expand Down

0 comments on commit ec6af6c

Please sign in to comment.