rjvbb added a comment.
Actually we do when the last progressbar is hidden, destroyed (or gets a QEvent::Close, testing that now). The reason we need to run a timer when progressbars are visible is how their busy mode is implemented. That does not have a separate state and there's no signal that's sent when the state changes. As far as I've seen the only option is polling. I'll have a look at how Breeze and/or Oxygen do this. REPOSITORY R626 QtCurve REVISION DETAIL https://phabricator.kde.org/D7640 To: rjvbb, yuyichao, #plasma Cc: davidedmundson, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas