When there is two grouped tasks named A and B, and the position of B is swapped with A (drag B), if I open the textual list of B, I can still see old items in A.
STEPS TO REPRODUCE
1. Prepare two grouped tasks named A and B
2. Swap the position of B with A (Drag B)
3. Click B
Task items in A
Task items in B
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/717
Git commit 351e676f9b593098cab7d701ce7893dd5559da7f by Fushan Wen.
Committed on 01/12/2021 at 15:47.
Pushed by ngraham into branch 'master'.
taskmanager: Update rootIndex when visibility is changed
When there are two grouped tasks named A and B, and the position
of B is swapped with A (by dragging B), user can still see old
items of A in the textual list of grouped tasks B.
This is because in the original binding expression, both visualParent
and itemIndex are not changed, so QML will not re-evaluate the
To only update rootIndex when `groupDialog.visible` is true,
`Binding.when` is used, and `Binding.RestoreNone` is to avoid
sudden changes in height.
M +6 -1 applets/taskmanager/package/contents/ui/GroupDialog.qml