Commit 8945f418 authored by Hoang Vu's avatar Hoang Vu Committed by David Edmundson
Browse files

Fix bug: plasmashell high cpu usage

    + When an task in an group change its title frequently,
      plasmashell cpu usage increase to 100% (one core)


(cherry picked from commit e725782c)
parent 2ad907a8
......@@ -146,7 +146,10 @@ PlasmaCore.Dialog {
return -1;
}
onItemAdded: Qt.callLater(updateSize)
onItemAdded: {
item.labelTextChanged.connect(updateSize);
Qt.callLater(updateSize)
}
onItemRemoved: {
if (groupDialog.visible && index > 0 && index == count) {
......@@ -278,8 +281,6 @@ PlasmaCore.Dialog {
if (textWidth > maxWidth) {
maxWidth = textWidth;
}
task.labelTextChanged.connect(updateSize);
}
maxHeight = groupRepeater.count * (LayoutManager.verticalMargins() + Math.max(theme.mSize(theme.defaultFont).height, units.iconSizes.medium));
......
Markdown is supported
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