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

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