mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-05-14 07:04:50 -04:00
v0.2 bug fixes
This commit is contained in:
parent
42782929f9
commit
d3b25d57b1
6 changed files with 33 additions and 12 deletions
|
@ -125,7 +125,7 @@ public class NSTableViewController implements Initializable {
|
|||
}
|
||||
}
|
||||
/**
|
||||
* Return files ready for upload. Requested from NSLMainController only
|
||||
* Return files ready for upload. Requested from NSLMainController only -> uploadBtnAction() //TODO: set undefined
|
||||
* @return null if no files marked for upload
|
||||
* List<File> if there are files
|
||||
* */
|
||||
|
@ -135,11 +135,15 @@ public class NSTableViewController implements Initializable {
|
|||
return null;
|
||||
else {
|
||||
for (NSLRowModel model: rowsObsLst){
|
||||
if (model.isMarkForUpload())
|
||||
if (model.isMarkForUpload()){
|
||||
files.add(model.getNspFile());
|
||||
model.setStatus(EFileStatus.UNKNOWN);
|
||||
}
|
||||
}
|
||||
if (!files.isEmpty())
|
||||
if (!files.isEmpty()) {
|
||||
table.refresh();
|
||||
return files;
|
||||
}
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue