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

applets/taskmanager: Update text width immediately when maxTextWidth is 0

This fixes sometimes GroupDialog's width being too short.
parent 1d81a2db
Pipeline #175581 passed with stage
in 4 minutes and 44 seconds
......@@ -92,7 +92,12 @@ PlasmaCore.Dialog {
enabled: index < 20 // 20 is based on performance considerations.
function onLabelTextChanged() { // ListView.onAdd included
Qt.callLater(groupFilter.updateMaxTextWidth);
if (groupFilter.maxTextWidth === 0) {
// Update immediately to avoid shrinking
groupFilter.updateMaxTextWidth();
} else {
Qt.callLater(groupFilter.updateMaxTextWidth);
}
}
}
}
......
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