Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

Commit

Permalink
Fix some graphical glitches.
Browse files Browse the repository at this point in the history
  • Loading branch information
JBYoshi committed Nov 24, 2015
1 parent b008465 commit 59c3801
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/java/jbyoshi/gitupdate/ui/TreeBasedUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@ private GUINodeView(String text) {
@Override
public ReportView newChild(String text) {
GUINodeView child = new GUINodeView(text);
model.insertNodeInto(child, this, getChildCount());
model.nodeChanged(this);
tree.expandPath(new TreePath(root.getPath()));
EventQueue.invokeLater(() -> {
model.insertNodeInto(child, this, getChildCount());
model.nodeChanged(this);
tree.expandPath(new TreePath(root.getPath()));
});
return child;
}

Expand Down Expand Up @@ -177,7 +179,7 @@ public void stateChanged(boolean error, boolean working, boolean future, boolean
} else {
icon = ICON_PLAIN;
}
model.nodeChanged(this);
EventQueue.invokeLater(() -> model.nodeChanged(this));
}
}

Expand Down

0 comments on commit 59c3801

Please sign in to comment.