push dialog: do not repaint tree path when loading icon is not visible.

This commit is contained in:
Nadya Zabrodina
2014-10-24 20:46:11 +04:00
parent 032053f98b
commit eeb0e9c796
2 changed files with 2 additions and 0 deletions
@@ -69,6 +69,7 @@ class LoadingIcon extends JBImageIcon {
}
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) {
if (myNode instanceof RepositoryNode && !((RepositoryNode)myNode).isLoading()) return false;
if ((flags & (FRAMEBITS | ALLBITS)) != 0) {
TreeNode[] pathToRoot = myModel.getPathToRoot(myNode);
if (pathToRoot != null) {
@@ -155,6 +155,7 @@ public class RepositoryNode extends CheckedTreeNode implements EditableTreeNode,
public void stopLoading() {
myLoading.set(false);
myLoadingIcon.setImageObserver(null);
}
public boolean isLoading() {