mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-05-13 22:54:49 -04:00
Add updated brazilian portuguese translation by @almircanella! #64
Refactor NETCommunications. Not it's readable :D A lot of small changes, code refactoring, updates and fixes.
This commit is contained in:
parent
96e85056dd
commit
267ffcf5d2
22 changed files with 553 additions and 522 deletions
|
@ -25,7 +25,6 @@ import javafx.scene.control.Label;
|
|||
import javafx.scene.layout.Region;
|
||||
import javafx.stage.DirectoryChooser;
|
||||
import nsusbloader.AppPreferences;
|
||||
import nsusbloader.COM.INSTask;
|
||||
import nsusbloader.MediatorControl;
|
||||
import nsusbloader.NSLDataTypes.EModule;
|
||||
import nsusbloader.Utilities.nxdumptool.NxdtTask;
|
||||
|
@ -45,7 +44,6 @@ public class NxdtController implements Initializable {
|
|||
|
||||
private Region btnDumpStopImage;
|
||||
|
||||
private INSTask NxdtTask;
|
||||
private Thread workThread;
|
||||
|
||||
@Override
|
||||
|
@ -83,7 +81,7 @@ public class NxdtController implements Initializable {
|
|||
if ((workThread == null || ! workThread.isAlive())){
|
||||
MediatorControl.getInstance().getContoller().logArea.clear();
|
||||
|
||||
NxdtTask = new NxdtTask(saveToLocationLbl.getText());
|
||||
Runnable NxdtTask = new NxdtTask(saveToLocationLbl.getText());
|
||||
workThread = new Thread(NxdtTask);
|
||||
workThread.setDaemon(true);
|
||||
workThread.start();
|
||||
|
@ -95,7 +93,7 @@ public class NxdtController implements Initializable {
|
|||
* */
|
||||
private void stopBtnAction(){
|
||||
if (workThread != null && workThread.isAlive()){
|
||||
NxdtTask.cancel();
|
||||
workThread.interrupt();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue