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.
This commit is contained in:
Sebastian Stenzel
2019-10-11 15:48:28 +02:00
parent 5a9f993df8
commit 2948b78cbe

View File

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