<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: Plasma.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.</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/D2613" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Set the initial values for all the things<br />
This is important as Plasma::DataModel has an unsolvable bug<br />
When it gets data with a new key it tries to update the QAIM roleNames<br />
From QML this achieves absolutely nothing as there is no signal to tell<br />
QQmlDelegateModel to reload the roleNames in QQmlAdapatorModel<br />
No matter if the row changes or the model refreshes<br />
This means it does not re-evaluate what bindings exist (watchedRoleIds)<br />
and we get properties that don't bind for this or any future SNI.</p>
<p>The main source of this problem is syncStatus can occur before<br />
refreshCallback; but whilst that's easy to guard against, there's still<br />
multiple if{} blocks that don't set various keys in refreshCallback()<br />
which would all need changing too. This seemed cleaner and easier to<br />
manage.</p>
<p>BUG: 366283<br />
BUG: 367756</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rPLASMAWORKSPACE Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2613" rel="noreferrer">https://phabricator.kde.org/D2613</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>dataengines/statusnotifieritem/statusnotifieritemsource.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma<br /><strong>Cc: </strong>plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas<br /></div>