Skip to content
Commit f8c69245 authored by Nate Graham's avatar Nate Graham
Browse files

Dynamically show and hide based on whether or not any vaults are configured

Summary:
Currently, the Vaults icon is always visible in the System Tray. However most tray icons
dynamically show and hide themselves based on whether or not they're relevant and in use,
which results in a nice clean clutter-free System Tray. So it would be nice for Vaults
to do the same.

This patch implements that behavior by making `rowCount` a property that gets updated
based on vault creation and deletion, and making the icon only appear in the tray when at
last one vault has been created.  People who prefer to have it always visible can of course
override this in the System Tray settings, but the auto-hide behavior in this patch is probably
a better default for most.

Test Plan:
1. Have no vaults -> icon is only in the popup
2. Create a vault -> icon appears in the tray
3. Delete the vault -> icon disappears from the tray and lives in the popup again

Reviewers: broulik, ivan, #plasma, #vdg

Reviewed By: ivan, #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26447
parent b984ad94
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment