https://bugs.kde.org/show_bug.cgi?id=476423

--- Comment #2 from Nate Graham <n...@kde.org> ---
Git commit ace04d03b6470f70420a3ebaf98011b0004b0fb4 by Nate Graham.
Committed on 20/04/2024 at 21:46.
Pushed by ngraham into branch 'master'.

Make applet active in the System Tray only when any vaults are open

Right now the applet is active when any vaults *exist*, and inactive
otherwise. This lets you always access a vault with two clicks.

As a downside, the Vaults icon is always taking up space in the visible
part of your System Tray. My sense is that most users of this feature
aren't opening and closing vaults all day every day, so for these
people, showing the icon 100% of the time wastes space.

Accordingly, let's make the applet active only when any vaults are
actually open. This makes the visible contents of the System Tray more
contextually relevant, and also provides a visual reminder when you've
forgotten to close your last vault--the icon is still visible!

The drawback to this change is that accessing a vault when none are
already open becomes a three-click task. I think this is an acceptable
trade-off for the above benefits, and people who prefer the status quo
can restore it by setting the applet to be always visible in their System
Tray settings.

Implementation-wise, the change relies on storing a list of open vaults
in the model that's kept in sync with the one in the KDED service, which
mirrors what's already done for the list of busy vaults and vaults in an
error state.

M  +1    -1    plasma/package/contents/ui/main.qml
M  +24   -0    plasma/vaultsmodel.cpp
M  +3    -0    plasma/vaultsmodel.h
M  +1    -0    plasma/vaultsmodel_p.h

https://invent.kde.org/plasma/plasma-vault/-/commit/ace04d03b6470f70420a3ebaf98011b0004b0fb4

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to