hein created this revision. Restricted Application added a project: Plasma.
REVISION SUMMARY Previously we updated the prop after checking for AbstractTasksModel::IsDemandingAttention on window closure, but as the window is gone, we can't actually get state for it anymore, so we always need to update. To make up for it, this patch also optimizes the prop updates to occur only once per insert/remove batch - this is a bit academic because the source models currently only insert single rows at a time, but it's good hygiene. BUG:378254 REPOSITORY R120 Plasma Workspace BRANCH Plasma/5.8 REVISION DETAIL https://phabricator.kde.org/D5261 AFFECTED FILES libtaskmanager/tasksmodel.cpp To: hein, #plasma, mart Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol