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
|
* 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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user