Skip to content

Commit

Permalink
Merge pull request #271 from ProgrammingLife2017/resetGraphInfo
Browse files Browse the repository at this point in the history
Reset node information when loading new graph
  • Loading branch information
BugOrFeature authored Jun 29, 2017
2 parents 741e72c + af49a0f commit 956dd12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/gui/GraphDrawer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,7 @@ public void reset() {
setAllAnnotations(new HashMap<>());
setSelected(null);
this.annotationCoordinates = null;
menuController.reset();
}

void setRainbowView(boolean rainbowView) {
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/gui/MenuController.java
Original file line number Diff line number Diff line change
Expand Up @@ -790,4 +790,11 @@ public void aboutUsClicked() throws IOException {
stage.initModality(Modality.APPLICATION_MODAL);
stage.showAndWait();
}

public void reset() {
nodeTextField.setText("");
radiusTextField.setText("");
sequenceInfo.setText("");
sequenceInfoAlt.setText("");
}
}

0 comments on commit 956dd12

Please sign in to comment.