Fix #40 Better label on start button

This commit is contained in:
Laurent Clouet
2016-02-08 13:06:33 +01:00
parent 309c56b93a
commit 641f75784b
2 changed files with 11 additions and 2 deletions

View File

@@ -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();

View File

@@ -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;