mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-05-13 14:44:48 -04:00
minor fixes
This commit is contained in:
parent
d4e272d1bf
commit
b8d89090a2
6 changed files with 14 additions and 5 deletions
|
@ -45,7 +45,7 @@ public class NSLMainController implements Initializable {
|
|||
|
||||
uploadStopBtn.setDisable(true);
|
||||
selectNspBtn.setOnAction(e->{ selectFilesBtnAction(); });
|
||||
uploadStopBtn.setOnAction(e->{ uploadToNsBtnAction(); });
|
||||
uploadStopBtn.setOnAction(e->{ uploadBtnAction(); });
|
||||
|
||||
this.btnUpStopImage = new Region();
|
||||
btnUpStopImage.getStyleClass().add("regionUpload");
|
||||
|
@ -85,7 +85,7 @@ public class NSLMainController implements Initializable {
|
|||
/**
|
||||
* It's button listener when no transmission executes
|
||||
* */
|
||||
private void uploadToNsBtnAction(){
|
||||
private void uploadBtnAction(){
|
||||
if (usbThread == null || !usbThread.isAlive()){
|
||||
UsbCommunications usbCommunications = new UsbCommunications(logArea, progressBar, nspToUpload); //todo: progress bar
|
||||
usbThread = new Thread(usbCommunications);
|
||||
|
@ -119,7 +119,7 @@ public class NSLMainController implements Initializable {
|
|||
}
|
||||
else {
|
||||
selectNspBtn.setDisable(false);
|
||||
uploadStopBtn.setOnAction(e->{ uploadToNsBtnAction(); });
|
||||
uploadStopBtn.setOnAction(e->{ uploadBtnAction(); });
|
||||
|
||||
uploadStopBtn.setText(resourceBundle.getString("btnUpload"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue