remove straggling lines of awt code

This commit is contained in:
Edward Chow
2022-10-16 22:36:25 +11:00
parent f852ae0392
commit 445be3b668

View File

@@ -68,8 +68,6 @@ public class TrayMenuBuilder {
try (var image = getClass().getResourceAsStream(SystemUtils.IS_OS_MAC_OSX ? TRAY_ICON_MAC : TRAY_ICON)) {
trayMenu.showTrayIcon(image.readAllBytes(), this::showMainWindow, "Cryptomator");
SystemTray tray = SystemTray.getSystemTray();
TrayIcon trayIcon = tray.getTrayIcons()[0];
trayMenu.onBeforeShow(() -> {
for (Vault vault : vaults) {
VaultListManager.redetermineVaultState(vault);