We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
onBeforeOpenMenu
1 parent 60e32c5 commit ab2868eCopy full SHA for ab2868e
src/main/java/org/cryptomator/integrations/tray/TrayMenuController.java
@@ -40,4 +40,16 @@ static Optional<TrayMenuController> get() {
40
*/
41
void updateTrayMenu(List<TrayMenuItem> items) throws TrayMenuException;
42
43
+ /**
44
+ * Action to run before the tray menu opens.
45
+ * <p>
46
+ * This method is used to set up an event listener for when the menu is opened,
47
+ * e.g. so that the vault list can be updated to reflect volume mount state changes
48
+ * which occur while Cryptomator is in the system tray (and not open).
49
+ *
50
+ * @param listener
51
+ * @throws IllegalStateException thrown when adding listeners fails (i.e. there's no tray menu)
52
+ */
53
+ void onBeforeOpenMenu(Runnable listener);
54
+
55
}
0 commit comments