mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-08-19 21:56:07 +00:00
enabled "reveal" from tray menu (#297)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user