mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-05-14 15:15:05 -04:00
v0.2
This commit is contained in:
parent
c4d0959cf3
commit
f5a9ddf8df
13 changed files with 162 additions and 91 deletions
|
@ -49,19 +49,18 @@ public class MessagesConsumer extends AnimationTimer {
|
|||
if (progressRecieved > 0)
|
||||
progress.forEach(prg -> progressBar.setProgress(prg));
|
||||
|
||||
if (isInterrupted) {
|
||||
if (isInterrupted) { // It's safe 'cuz it's could't be interrupted while HashMap populating
|
||||
MediatorControl.getInstance().setTransferActive(false);
|
||||
progressBar.setProgress(0.0);
|
||||
|
||||
if (statusMap.size() > 0) // It's safe 'cuz it's could't be interrupted while HashMap populating
|
||||
if (statusMap.size() > 0)
|
||||
for (String key : statusMap.keySet())
|
||||
tableViewController.setFileStatus(key, statusMap.get(key));
|
||||
this.stop();
|
||||
}
|
||||
//TODO
|
||||
}
|
||||
|
||||
void interrupt(){
|
||||
this.isInterrupted = true;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue