From 2948b78cbecaea0366bc5adb5af964f7e841e2c5 Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Fri, 11 Oct 2019 15:48:28 +0200 Subject: [PATCH] showing the window shouldn't be a decision made by the vault list controller. when opening a .cryptomator file, the handler for open file requests is responsible for showing the main window. --- .../org/cryptomator/ui/mainwindow/VaultListController.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main/ui/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java b/main/ui/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java index 93411c4b5..82fe7c7c7 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java +++ b/main/ui/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java @@ -54,10 +54,6 @@ public class VaultListController implements FxController { if (c.wasAdded()) { Vault anyAddedVault = c.getAddedSubList().get(0); vaultList.getSelectionModel().select(anyAddedVault); - window.setIconified(false); - window.show(); - window.toFront(); - window.requestFocus(); // TODO: this beeps on macOS if there is a modal child window... } } });