push: check current repo by default if there is no external preselection

This commit is contained in:
Nadya Zabrodina
2017-08-18 19:29:09 +03:00
parent 3f1cc11a4d
commit f3b17e7dcd
@@ -141,9 +141,11 @@ public class PushController implements Disposable {
RepositoryNode nodeForCurrentEditor = findNodeByRepo(myCurrentlyOpenedRepository);
if (nodeForCurrentEditor != null) {
MyRepoModel<?, ?, ?> currentRepoModel = myView2Model.get(nodeForCurrentEditor);
if (isPreChecked(currentRepoModel)) {
//for ASYNC with no preselected -> check current repo
if (isPreChecked(currentRepoModel) || myPreselectedRepositories.isEmpty()) {
// put current editor repo to be loaded at first
priorityLoading.put(nodeForCurrentEditor, currentRepoModel);
currentRepoModel.setChecked(true);
}
}