Skip to content

Commit

Permalink
Use Task.set_status to mark tasks as done or active
Browse files Browse the repository at this point in the history
Fixes GitHub issue #1180
  • Loading branch information
gycsaba96 authored and diegogangl committed Feb 4, 2025
1 parent b447615 commit cd348da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GTG/gtk/browser/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1389,15 +1389,15 @@ def trace_subtasks(root):

def on_mark_as_done(self, widget=None):
for task in self.get_pane().get_selection():
task.toggle_active()
task.set_status(Status.DONE)

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

def on_reopen_task(self, widget=None):
for task in self.get_pane().get_selection():
task.toggle_active()
task.set_status(Status.ACTIVE)

def on_select_tag(self, widget=None, row=None, col=None):
""" Callback for tag(s) selection from left sidebar.
Expand Down

0 comments on commit cd348da

Please sign in to comment.