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
da1fc9ef
Verified
Commit
da1fc9ef
authored
Apr 21, 2022
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
applets/taskmanager/package/contents/ui/GroupDialog.qml
View file @
da1fc9ef
...
...
@@ -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
);
}
}
}
}
...
...
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