|
@@ -134,7 +134,7 @@ class TrayMenuController {
|
|
|
submenu.add(lockItem);
|
|
|
|
|
|
MenuItem revealItem = new MenuItem(resourceBundle.getString("traymenu.vault.reveal"));
|
|
|
- revealItem.setEnabled(false); // TODO add action listener
|
|
|
+ revealItem.addActionListener(createActionListenerForVault(vault, this::revealVault));
|
|
|
submenu.add(revealItem);
|
|
|
}
|
|
|
|
|
@@ -153,6 +153,10 @@ class TrayMenuController {
|
|
|
fxApplicationStarter.get(true).thenAccept(app -> app.getVaultService().lock(vault, false));
|
|
|
}
|
|
|
|
|
|
+ private void revealVault(Vault vault) {
|
|
|
+ fxApplicationStarter.get(true).thenAccept(app -> app.getVaultService().reveal(vault));
|
|
|
+ }
|
|
|
+
|
|
|
void showMainWindow(@SuppressWarnings("unused") ActionEvent actionEvent) {
|
|
|
fxApplicationStarter.get(true).thenAccept(app -> app.showMainWindow());
|
|
|
}
|