Browse Source

remove straggling lines of awt code

Edward Chow 2 years ago
parent
commit
445be3b668
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/main/java/org/cryptomator/ui/traymenu/TrayMenuBuilder.java

+ 0 - 2
src/main/java/org/cryptomator/ui/traymenu/TrayMenuBuilder.java

@@ -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);