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

Commit 59c3801

Browse files
committed
Fix some graphical glitches.
1 parent b008465 commit 59c3801

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main/java/jbyoshi/gitupdate/ui/TreeBasedUI.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,11 @@ private GUINodeView(String text) {
142142
@Override
143143
public ReportView newChild(String text) {
144144
GUINodeView child = new GUINodeView(text);
145-
model.insertNodeInto(child, this, getChildCount());
146-
model.nodeChanged(this);
147-
tree.expandPath(new TreePath(root.getPath()));
145+
EventQueue.invokeLater(() -> {
146+
model.insertNodeInto(child, this, getChildCount());
147+
model.nodeChanged(this);
148+
tree.expandPath(new TreePath(root.getPath()));
149+
});
148150
return child;
149151
}
150152

@@ -177,7 +179,7 @@ public void stateChanged(boolean error, boolean working, boolean future, boolean
177179
} else {
178180
icon = ICON_PLAIN;
179181
}
180-
model.nodeChanged(this);
182+
EventQueue.invokeLater(() -> model.nodeChanged(this));
181183
}
182184
}
183185

0 commit comments

Comments
 (0)