<table><tr><td style="">ngraham created this revision.<br />ngraham added reviewers: broulik, ivan, Plasma, VDG.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />ngraham requested review of this revision.
</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/D26447">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently, the Vaults icon is always visible in the System Tray. However most tray icons<br />
dynamically show and hide themselves based on whether or not they're relevant and in use,<br />
which results in a nice clean clutter-free System Tray. So it would be nice for Vaults<br />
to do the same.</p>
<p>This patch implements that behavior by adding a <tt style="background: #ebebeb; font-size: 13px;">count</tt> property that gets updated based<br />
on vault creation and deletion, and making the icon only appear in the tray when the count<br />
is greater than 0. People who prefer to have it always visible can of course override<br />
this in the System Tray settings, but the auto-hide behavior in this patch is probably a<br />
better default for most.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Have no vaults -> icon is only in the popup</li>
<li class="remarkup-list-item">Create a vault -> icon appears in the tray</li>
<li class="remarkup-list-item">Delete the vault -> icon disappears from the tray and lives in the popup again</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R845 Plasma Vault</div></div></div><br /><div><strong>BRANCH</strong><div><div>dynamically-show-and-hide (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26447">https://phabricator.kde.org/D26447</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plasma/package/contents/ui/main.qml<br />
plasma/vaultsmodel.cpp<br />
plasma/vaultsmodel.h</div></div></div><br /><div><strong>To: </strong>ngraham, broulik, ivan, Plasma, VDG<br /><strong>Cc: </strong>plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>