diff --git a/main/ui/src/main/java/org/cryptomator/ui/traymenu/FxApplicationStarter.java b/main/ui/src/main/java/org/cryptomator/ui/traymenu/FxApplicationStarter.java index cd9308504..de4bbd046 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/traymenu/FxApplicationStarter.java +++ b/main/ui/src/main/java/org/cryptomator/ui/traymenu/FxApplicationStarter.java @@ -38,7 +38,7 @@ public class FxApplicationStarter { private void start(boolean fromTrayMenu) { executor.submit(() -> { - LOG.info("Starting JavaFX runtime..."); + LOG.debug("Starting JavaFX runtime..."); Platform.startup(() -> { assert Platform.isFxApplicationThread(); LOG.info("JavaFX Runtime started."); diff --git a/main/ui/src/main/java/org/cryptomator/ui/traymenu/TrayIconController.java b/main/ui/src/main/java/org/cryptomator/ui/traymenu/TrayIconController.java index 754a8a3c0..1ecb1b388 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/traymenu/TrayIconController.java +++ b/main/ui/src/main/java/org/cryptomator/ui/traymenu/TrayIconController.java @@ -33,7 +33,7 @@ public class TrayIconController { try { SystemTray.getSystemTray().add(trayIcon); - LOG.info("initialized tray icon"); + LOG.debug("initialized tray icon"); } catch (AWTException e) { LOG.error("Error adding tray icon", e); } diff --git a/main/ui/src/main/java/org/cryptomator/ui/traymenu/TrayMenuController.java b/main/ui/src/main/java/org/cryptomator/ui/traymenu/TrayMenuController.java index 64da0c5e5..4fded4161 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/traymenu/TrayMenuController.java +++ b/main/ui/src/main/java/org/cryptomator/ui/traymenu/TrayMenuController.java @@ -5,8 +5,6 @@ import javafx.collections.ObservableList; import org.cryptomator.common.settings.Settings; import org.cryptomator.common.vaults.Vault; import org.cryptomator.ui.fxapp.FxApplication; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import javax.inject.Inject; import javax.inject.Named; @@ -19,8 +17,6 @@ import java.util.concurrent.CountDownLatch; @TrayMenuScoped class TrayMenuController { - - private static final Logger LOG = LoggerFactory.getLogger(TrayMenuController.class); private final FxApplicationStarter fxApplicationStarter; private final CountDownLatch shutdownLatch; @@ -43,14 +39,14 @@ class TrayMenuController { public void initTrayMenu() { vaults.addListener(this::vaultListChanged); - + rebuildMenu(); - + // register preferences shortcut if (Desktop.getDesktop().isSupported(Desktop.Action.APP_PREFERENCES)) { Desktop.getDesktop().setPreferencesHandler(this::showPreferencesWindow); } - + // show window on start? if (!settings.startHidden().get()) { showMainWindow(null); @@ -63,7 +59,7 @@ class TrayMenuController { private void rebuildMenu() { menu.removeAll(); - + MenuItem showMainWindowItem = new MenuItem("TODO show"); showMainWindowItem.addActionListener(this::showMainWindow); menu.add(showMainWindowItem);