소스 검색

simplified toggle boolean
[ci skip]

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

+ 1 - 5
src/main/java/org/cryptomator/ui/mainwindow/MainWindowTitleController.java

@@ -63,11 +63,7 @@ public class MainWindowTitleController implements FxController {
 		});
 		titleBar.setOnMouseClicked(event -> {
 			if (event.getButton().equals(MouseButton.PRIMARY) && event.getClickCount() == 2) {
-				if (window.isFullScreen()) {
-					window.setFullScreen(false);
-				} else {
-					window.setFullScreen(true);
-				}
+				window.setFullScreen(!window.isFullScreen());
 			}
 		});
 		titleBar.setOnMouseDragged(event -> {