소스 검색

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.

Sebastian Stenzel 5 년 전
부모
커밋
2948b78cbe
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      main/ui/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java

+ 0 - 4
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...
 				}
 			}
 		});