mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-18 10:41:26 +00:00
minor code cleanup
This commit is contained in:
@@ -62,13 +62,11 @@ public class MainWindowTitleController implements FxController {
|
||||
|
||||
});
|
||||
titleBar.setOnMouseClicked(event -> {
|
||||
if (event.getButton().equals(MouseButton.PRIMARY)) {
|
||||
if (event.getClickCount() == 2) {
|
||||
if (window.isFullScreen()) {
|
||||
window.setFullScreen(false);
|
||||
} else {
|
||||
window.setFullScreen(true);
|
||||
}
|
||||
if (event.getButton().equals(MouseButton.PRIMARY) && event.getClickCount() == 2) {
|
||||
if (window.isFullScreen()) {
|
||||
window.setFullScreen(false);
|
||||
} else {
|
||||
window.setFullScreen(true);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user