IDEA-65218 Correct background fetch

Update information that current branch should be updated, after background fetch completes.
This commit is contained in:
Kirill Likhodedov
2011-02-18 18:23:15 +03:00
parent b4ec1e27d2
commit ed9f81b4a9
@@ -528,14 +528,12 @@ public class GitPushActiveBranchesDialog extends DialogWrapper {
* the difference is that commit checkboxes should be checked only during the initial refresh - others should respect * the difference is that commit checkboxes should be checked only during the initial refresh - others should respect
* user who could uncheck some commits. * user who could uncheck some commits.
*/ */
private void refreshTree(final boolean fetchData, final Map<VirtualFile, Set<String>> unchecked, final boolean updateTree) { private void refreshTree(final boolean fetchData, final Map<VirtualFile, Set<String>> unchecked, final boolean updateUncheckedCommits) {
myCommitTree.setPaintBusy(true); myCommitTree.setPaintBusy(true);
loadRootsInBackground(fetchData, new PushActiveBranchRunnable(){ loadRootsInBackground(fetchData, new PushActiveBranchRunnable(){
@Override @Override
void run(List<Root> roots) { void run(List<Root> roots) {
if (updateTree) { updateTree(roots, updateUncheckedCommits ? unchecked : null);
updateTree(roots, unchecked);
}
updateUI(); updateUI();
myCommitTree.setPaintBusy(false); myCommitTree.setPaintBusy(false);
} }