Fix #40 Better label on start button
This commit is contained in:
@@ -64,7 +64,7 @@ public class Client {
|
|||||||
this.isValidatingJob = false;
|
this.isValidatingJob = false;
|
||||||
|
|
||||||
this.disableErrorSending = false;
|
this.disableErrorSending = false;
|
||||||
this.running = true;
|
this.running = false;
|
||||||
this.suspended = false;
|
this.suspended = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,6 +103,8 @@ public class Client {
|
|||||||
return -4;
|
return -4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.running = true;
|
||||||
|
|
||||||
int step;
|
int step;
|
||||||
try {
|
try {
|
||||||
step = this.log.newCheckPoint();
|
step = this.log.newCheckPoint();
|
||||||
|
|||||||
@@ -262,7 +262,14 @@ public class Settings implements Activity {
|
|||||||
parent.addPadding(1, ++currentRow, columns - 2, 1);
|
parent.addPadding(1, ++currentRow, columns - 2, 1);
|
||||||
++currentRow;
|
++currentRow;
|
||||||
|
|
||||||
saveButton = new JButton("Start");
|
String buttonText = "Start";
|
||||||
|
if (parent.getClient() != null) {
|
||||||
|
if (parent.getClient().isRunning()) {
|
||||||
|
buttonText = "Save";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
saveButton = new JButton(buttonText);
|
||||||
checkDisplaySaveButton();
|
checkDisplaySaveButton();
|
||||||
saveButton.addActionListener(new SaveAction());
|
saveButton.addActionListener(new SaveAction());
|
||||||
constraints.gridwidth = columns - 2;
|
constraints.gridwidth = columns - 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user