mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
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:
parent
56ca81cfe8
commit
5fd6e76557
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue