TreeUi: honor isAlwaysPlus

This commit is contained in:
Kirill Kalishev
2009-10-16 15:54:58 +04:00
parent 25ff4879b4
commit a2cdbc546c
@@ -799,7 +799,12 @@ public class AbstractTreeUi {
}
boolean bgBuild = isToBuildInBackground(descriptor);
boolean notRequiredToUpdateChildren = !forcedNow && !wasExpanded && !forceUpdate;
boolean notRequiredToUpdateChildren = !forcedNow && !wasExpanded;
if (notRequiredToUpdateChildren && forceUpdate && !wasExpanded) {
notRequiredToUpdateChildren = getBuilder().isAlwaysShowPlus(descriptor);
}
LoadedChildren preloaded = loadedChildren;
boolean descriptorWasUpdated = descriptorIsUpToDate;