Skip to content
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 models for subtasks upon changes #1094

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

gycsaba96
Copy link
Contributor

This fixes one of the problems listed in GitHub issue #1018:

If you drag a child from one parent to another task (re-parent), it duplicates it in the view

The main changes are as follows:

  • The tid_to_subtask_model field keeps track of the ListStores created for subtasks.
  • The _remove_from_parent_model and _append_to_model helper functions update these models when a change happens.
  • Thanks to this new functionality, some GUI updates are simplified.

The tid_to_subtask_model field keeps track of the ListStores
created for subtasks. The _remove_from_parent_model
and _append_to_model helper functions update these models
when a change happens. This functionality helps to keep
the UI up-to-date.

This fixes one of the problems listed in GitHub issue getting-things-gnome#1018
@diegogangl
Copy link
Contributor

Great job! Now we can get rid of that awful collapse/expand hack to update the ui :)
Thanks, merging

@diegogangl diegogangl merged commit 56e90a4 into getting-things-gnome:master Apr 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants