Verified Commit ac0fa526 authored by Fushan Wen's avatar Fushan Wen
Browse files

applets/taskmanager: Move some childCountChanged code from Task to GroupDialog

parent 85f6c0cf
......@@ -121,7 +121,13 @@ PlasmaCore.Dialog {
reuseItems: false
onCountChanged: if (count > 0) backend.cancelHighlightWindows()
onCountChanged: {
if (count > 0) {
backend.cancelHighlightWindows()
} else {
groupDialog.visible = false;
}
}
}
}
}
......
......@@ -93,16 +93,6 @@ MouseArea {
}
onChildCountChanged: {
if (!childCount && groupDialog.visualParent == task) {
groupDialog.visible = false;
return;
}
if (containsMouse) {
groupDialog.activeTask = null;
}
if (childCount > previousChildCount) {
tasksModel.requestPublishDelegateGeometry(modelIndex(), backend.globalRect(task), task);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment