mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
push dialog: do not repaint tree path when loading icon is not visible.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user