Commit 2f5288a8 authored by Nate Graham's avatar Nate Graham
Browse files

[applet] Add "Show in File Manager" action when opened

After recent changes to the actions, when you open a vault, there is no
standalone action to show it in a file manager. Normally this is not
needed if you use the "Unlock and Open" action, but if you use that and
then close it by mistake, or use the "Unlock" action that does not
automatically spawn a file manager window, it may not be obvious how to
actually get to the vault.

Accordingly, this commit adds a standalone "Show in File Manager" action
that appears in the expanded view, but only when the vault is currently
parent 29d5b55b
......@@ -36,6 +36,14 @@ PlasmaExtras.ExpandableListItem {
isBusy: Plasmoid.busy
isEnabled: model.isEnabled
contextualActionsModel: [
Action {
enabled: model.isOpened "document-open-folder"
text: i18n("Show in File Manager")
onTriggered: {
Action { model.isOpened ? "window-close" : "unlock"
text: model.isOpened ? i18nd("plasmavault-kde", "Forcefully Lock Vault") : i18nd("plasmavault-kde", "Unlock Vault")
Supports Markdown
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