Skip to content

Commit

Permalink
Switch Dismissed/Undismissed buttons
Browse files Browse the repository at this point in the history
Switch Dismissed/Undismissed buttons
  • Loading branch information
kocio-pl authored and diegogangl committed Mar 10, 2024
1 parent aa5d084 commit 50d7034
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GTG/gtk/editor/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,15 +459,15 @@ def refresh_editor(self, title=None, refreshtext=False):
if status == Status.ACTIVE:
self.donebutton.show()
self.undonebutton.hide()
self.set_dismissable_in_menu(False)
self.set_dismissable_in_menu(True)
elif status == Status.DONE:
self.donebutton.hide()
self.undonebutton.show()
self.set_dismissable_in_menu(True)
self.set_dismissable_in_menu(False)
else:
self.donebutton.show()
self.undonebutton.hide()
self.set_dismissable_in_menu(True)
self.set_dismissable_in_menu(False)

# Refreshing the parent button
if self.task.parent:
Expand Down

0 comments on commit 50d7034

Please sign in to comment.