Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
ac0fa526
Verified
Commit
ac0fa526
authored
Apr 21, 2022
by
Fushan Wen
Browse files
applets/taskmanager: Move some childCountChanged code from Task to GroupDialog
parent
85f6c0cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
applets/taskmanager/package/contents/ui/GroupDialog.qml
View file @
ac0fa526
...
...
@@ -121,7 +121,13 @@ PlasmaCore.Dialog {
reuseItems
:
false
onCountChanged
:
if
(
count
>
0
)
backend
.
cancelHighlightWindows
()
onCountChanged
:
{
if
(
count
>
0
)
{
backend
.
cancelHighlightWindows
()
}
else
{
groupDialog
.
visible
=
false
;
}
}
}
}
}
...
...
applets/taskmanager/package/contents/ui/Task.qml
View file @
ac0fa526
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment