瀏覽代碼

remove straggling lines of awt code

Edward Chow 2 年之前
父節點
當前提交
445be3b668
共有 1 個文件被更改,包括 0 次插入2 次删除
  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);