mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-65218 Correct background fetch
Update information that current branch should be updated, after background fetch completes.
This commit is contained in:
@@ -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
|
||||
* 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);
|
||||
loadRootsInBackground(fetchData, new PushActiveBranchRunnable(){
|
||||
@Override
|
||||
void run(List<Root> roots) {
|
||||
if (updateTree) {
|
||||
updateTree(roots, unchecked);
|
||||
}
|
||||
updateTree(roots, updateUncheckedCommits ? unchecked : null);
|
||||
updateUI();
|
||||
myCommitTree.setPaintBusy(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user