Bugfix: Setting the right label on action button #115

This commit is contained in:
Laurent Clouet
2017-01-29 21:03:38 +01:00
parent f178c823f8
commit 42017fa7a3

View File

@@ -172,6 +172,11 @@ public class Working implements Activity {
settingsButton.addActionListener(new SettingsAction());
pauseButton = new JButton("Pause");
Client client = parent.getClient();
if (client != null && client.isSuspended()) {
pauseButton.setText("Resume");
}
pauseButton.addActionListener(new PauseAction());
JButton blockJob = new JButton("Block this project");