<table><tr><td style="">hein created this revision.<br />Restricted Application added a project: Plasma.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D5261" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Previously we updated the prop after checking for<br />
AbstractTasksModel::IsDemandingAttention on window closure, but<br />
as the window is gone, we can't actually get state for it anymore,<br />
so we always need to update.</p>

<p>To make up for it, this patch also optimizes the prop updates to occur<br />
only once per insert/remove batch - this is a bit academic because<br />
the source models currently only insert single rows at a time, but<br />
it's good hygiene.</p>

<p>BUG:378254</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>Plasma/5.8</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5261" rel="noreferrer">https://phabricator.kde.org/D5261</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>libtaskmanager/tasksmodel.cpp</div></div></div><br /><div><strong>To: </strong>hein, Plasma, mart<br /><strong>Cc: </strong>plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>