mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-05-15 07:34:46 -04:00
v0.4.1:
minor changes/updates for @rashevskyv
This commit is contained in:
parent
86e974aa48
commit
90e2bfb21d
9 changed files with 60 additions and 16 deletions
src/main/java/nsusbloader/Controllers
|
@ -25,6 +25,7 @@ import java.io.File;
|
|||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
public class NSTableViewController implements Initializable {
|
||||
|
@ -259,9 +260,16 @@ public class NSTableViewController implements Initializable {
|
|||
model.setMarkForUpload(true);
|
||||
}
|
||||
else {
|
||||
for (NSLRowModel model: rowsObsLst)
|
||||
model.setMarkForUpload(false);
|
||||
rowsObsLst.get(0).setMarkForUpload(true);
|
||||
ListIterator<NSLRowModel> iterator = rowsObsLst.listIterator();
|
||||
while (iterator.hasNext()){
|
||||
NSLRowModel current = iterator.next();
|
||||
if (current.getNspFileName().toLowerCase().endsWith("xci"))
|
||||
iterator.remove();
|
||||
else
|
||||
current.setMarkForUpload(false);
|
||||
}
|
||||
if (!rowsObsLst.isEmpty())
|
||||
rowsObsLst.get(0).setMarkForUpload(true);
|
||||
}
|
||||
table.refresh();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue