Skip to content

Commit

Permalink
Import addSuggestionAsBranch (#556) from panel UI to normal UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiraoka committed Feb 9, 2021
1 parent 89df275 commit d0f9d18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/featurecat/lizzie/gui/LizzieFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,10 @@ public boolean incrementDisplayedBranchLength(int n) {
return boardRenderer.incrementDisplayedBranchLength(n);
}

public void addSuggestionAsBranch() {
boardRenderer.addSuggestionAsBranch();
}

public void copySgf() {
try {
// Get sgf content from game
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/featurecat/lizzie/gui/RightClickMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void popupMenuWillBecomeVisible(PopupMenuEvent e) {}
this.add(avoid);
this.add(keepingAvoid);
this.add(clearAvoidAllow);
if (Lizzie.config.panelUI && Lizzie.frame.isMouseOver) {
if (Lizzie.frame.isMouseOver) {
addSuggestionAsBranch.setVisible(true);
} else {
addSuggestionAsBranch.setVisible(false);
Expand Down

0 comments on commit d0f9d18

Please sign in to comment.