[log] IDEA-133197 repaint after expanding/collapsing branches

runUnderModalProgress not only runs under a modal progress, but also
prohibits repaint requests (because the graph can be in inconsistent
state while it is changing in the background modal thread) => repaint
request should be done outside of this call.
This commit is contained in:
Kirill Likhodedov
2014-11-25 18:56:14 +03:00
parent 929722f0eb
commit 0b0bdf6e47
@@ -149,14 +149,9 @@ public class VcsLogUiImpl implements VcsLogUi, Disposable {
@Override
public void run() {
myVisiblePack.getVisibleGraph().getActionController().setLinearBranchesExpansion(false);
UIUtil.invokeAndWaitIfNeeded(new Runnable() {
@Override
public void run() {
handleAnswer(null, true);
}
});
}
});
handleAnswer(null, true);
}
public void hideAll() {
@@ -164,14 +159,9 @@ public class VcsLogUiImpl implements VcsLogUi, Disposable {
@Override
public void run() {
myVisiblePack.getVisibleGraph().getActionController().setLinearBranchesExpansion(true);
UIUtil.invokeAndWaitIfNeeded(new Runnable() {
@Override
public void run() {
handleAnswer(null, true);
}
});
}
});
handleAnswer(null, true);
}
public void setLongEdgeVisibility(boolean visibility) {