Make the vault button middleclickable

I had the idea of maybe making the “Vaults” button in the system tray (or whatever that part of the panel is called) middle-clickable. If you middle-click it it should close all currently open vaults and you could configure if it should force-close or close them the normal way (maybe with the latter being the default).

I don’t use the Vaults tray widget personally, so I have no vested interest but just thinking conceptually…is that something that could be “dangerous” if it doesn’t ask for confirmation first? Basically, is there anything destructive about that action of closing the vault?

I feel like with tray icons often being tightly packed together, and with middle-button misclicks happening - at least for me - more often than either left or right-button ones, it might be worth specifying what happens if it’s accidental?

I’d say it should be configurable. And use the non-forceful unmounting by default, so all still-running processes can finish with the files in the vault undisrupted.
Don’t the vaults already have an option to immediately unmount when switching to a different activity by limiting them to a certain activity?

No; if a Vault has open files, the close operation will simply fail.

1 Like