GP-29 - commented the change per code review

This commit is contained in:
dev747368 2020-07-10 13:34:43 -04:00
parent bba1624c79
commit fd3e835be5

View file

@ -90,8 +90,8 @@ public class VersionControlAddAction extends VersionControlAction {
if (unversioned.isEmpty()) { if (unversioned.isEmpty()) {
return; return;
} }
ArrayList<DomainFile> list = new ArrayList<DomainFile>(); ArrayList<DomainFile> list = new ArrayList<>();
ArrayList<DomainFile> changedList = new ArrayList<DomainFile>(); ArrayList<DomainFile> changedList = new ArrayList<>();
for (DomainFile domainFile : unversioned) { for (DomainFile domainFile : unversioned) {
if (domainFile.isBusy()) { if (domainFile.isBusy()) {
Msg.showWarn(getClass(), null, "Add To Version Control Failed!", Msg.showWarn(getClass(), null, "Add To Version Control Failed!",
@ -152,7 +152,9 @@ public class VersionControlAddAction extends VersionControlAction {
return; return;
} }
// Note: this used to be a sleep(200)
Swing.allowSwingToProcessEvents(); Swing.allowSwingToProcessEvents();
df.addToVersionControl(comments, keepCheckedOut, monitor); df.addToVersionControl(comments, keepCheckedOut, monitor);
} }
} }