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