Compare commits

..

No commits in common. "88583a8a2e1fd796c497b572c1ed235d1e34a219" and "2d1c5fa4ba643090fa66ca9b62afd76ca53daa68" have entirely different histories.

1 changed files with 1 additions and 2 deletions

View File

@ -384,8 +384,7 @@ void TaskTree::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_READY: {
tree->connect("item_mouse_selected", callable_mp(this, &TaskTree::_on_item_mouse_selected));
// Note: CONNECT_DEFERRED is needed to avoid double updates with set_allow_reselect(true), which breaks folding/unfolding.
tree->connect("item_selected", callable_mp(this, &TaskTree::_on_item_selected), CONNECT_DEFERRED);
tree->connect("item_selected", callable_mp(this, &TaskTree::_on_item_selected));
tree->connect("item_activated", callable_mp(this, &TaskTree::_on_item_activated));
tree->connect("item_collapsed", callable_mp(this, &TaskTree::_on_item_collapsed));
} break;