Fix off-by one display error in which checkout progress displayed to user starts from 0 instead of 1

Since we are displaying the number of the file in relation to the number of files to be checked out, the progress number should start at 1, instead of 0, because otherwise it gives the impression one more file than there actually are are set to be checked out.
This commit is contained in:
Wiz 2021-12-18 13:14:05 -05:00
parent 56ca81cfe8
commit 5fd6e76557

View file

@ -134,7 +134,7 @@ public class VersionControlCheckOutAction extends VersionControlAction {
if (n == 0) {
Msg.showError(this, tool.getToolFrame(), "Checkout Failed",
"The specified files do not contain any versioned files available for " +
"checkeout");
"checkout");
return false;
}
@ -193,7 +193,7 @@ public class VersionControlCheckOutAction extends VersionControlAction {
};
List<DomainFile> failedCheckouts = new ArrayList<>();
int progress = 0;
int progress = 1;
for (DomainFile df : versionedFiles) {
monitor.checkCanceled();