-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the pane's filter when updating the start date of a task #1059
Update the pane's filter when updating the start date of a task #1059
Conversation
@@ -1041,6 +1046,11 @@ def update_start_to_next_day(self, day_number): | |||
for task in self.get_pane().get_selection(): | |||
task.date_start = next_day | |||
|
|||
# Changing the start date of a task may take it out of the current pane |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that we're again running into the fact that the same functionality (updating the start date of a task) is implemented in two different methods (update_start_date()
and update_start_to_next_day()
).
I'd like to have one call the other instead, but that's not really related to the current change so I didn't include it here.
Looks good, except for a couple nitpicks and it works. Thanks! There's one part missing though, if the start date is changed in the task editor using the calendar widget. Maybe we should call refresh() when the window is destoryed? |
Good point! I actually noticed that earlier this week too, but didn't have time to look into it further. Will do. |
1dfb459
to
c2ed5b0
Compare
I also added a But |
Looks good now 👍 |
Fixes #1039
Updating the start date of a task may influence whether or not it needs to be visible. For example, if you're on the Actionable pane and you set the start date of a task to some time in the future, then the task is no longer actionable and needs to disappear from that view.
Testing by having some tasks in the Actionable pane, then verifying that the following make the task disappear from the pane: