<table><tr><td style="">broulik created this revision.<br />broulik added a reviewer: Plasma.<br />broulik set the repository for this revision to rPLASMAWORKSPACE Plasma Workspace.<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/D1793" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Instead of having a bunch of handlers in various places messing with various settings, try to use declarative bindings where possible.</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Remove separate passive timer, instead re-use the pendingDelegateRemoval property which has its own timer. This way, when a device is unmounted, device notifier stays active until the notification has cleared, however, when the device is yanked out manually, it disappears right away</li>
<li class="remarkup-list-item">Don't break binding on Plasmoid.active to ensure its state is always proper depending on whether a device or not is present (the linked bug)</li>
<li class="remarkup-list-item">Create tooltip declaratively rather than imperatively</li>
</ul>
<p>BUG: 362992<br />
FIXED-IN: 5.7.0</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Started plasma with no usb stick - initially passive</li>
<li class="remarkup-list-item">Start plasma with - immediately active</li>
</ul>
<ul class="remarkup-list">
<li class="remarkup-list-item">Plugged in usb stick - got popup with active state</li>
<li class="remarkup-list-item">Plugged it out - immediately got passive</li>
<li class="remarkup-list-item">Plugged back in - got popup with active state</li>
<li class="remarkup-list-item">Mounted and then unmounted - got popup with notification, stayed active until notification cleared</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>rPLASMAWORKSPACE Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D1793" rel="noreferrer">https://phabricator.kde.org/D1793</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/devicenotifier/package/contents/ui/FullRepresentation.qml<br />
applets/devicenotifier/package/contents/ui/devicenotifier.qml</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>broulik, Plasma<br /><strong>Cc: </strong>plasma-devel, sebas<br /></div>