Skip to content

Commit

Permalink
Fixes #109 Don't disable "Create game"
Browse files Browse the repository at this point in the history
* Fixed NPE when chat was never displayed
* Improved chat notification
  • Loading branch information
micheljung committed May 26, 2016
1 parent a5c0452 commit 567ccae
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/com/faforever/client/main/MainController.java
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,23 @@ private void setContent(Node node) {
}
}

private void setContent(Node node) {
ObservableList<Node> children = contentPane.getChildren();

if (!children.contains(node)) {
children.add(node);

AnchorPane.setTopAnchor(node, 0d);
AnchorPane.setRightAnchor(node, 0d);
AnchorPane.setBottomAnchor(node, 0d);
AnchorPane.setLeftAnchor(node, 0d);
}

for (Node child : children) {
child.setVisible(child == node);
}
}

private Rectangle2D getTransientNotificationAreaBounds() {
ObservableList<Screen> screens = Screen.getScreens();

Expand Down

0 comments on commit 567ccae

Please sign in to comment.