Skip to content

Commit

Permalink
Fixed Diags halt poll button
Browse files Browse the repository at this point in the history
  • Loading branch information
CCatania01 committed Jun 12, 2018
1 parent 68a54b0 commit 24850a7
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -217,7 +217,11 @@ public void actionPerformed(java.awt.event.ActionEvent e) {
}
});
panelTest1.add(haltPollButton);
haltpollButtonActionPerformed();
SerialTrafficController stc = _memo.getTrafficController();
if (stc.getPollNetwork())
haltPollButton.setText(Bundle.getMessage("HaltPollButtonText"));
else
haltPollButton.setText(Bundle.getMessage("ResumePollButtonText"));

panelTest.add(panelTest1);

Expand Down Expand Up @@ -808,11 +812,11 @@ public void stopButtonActionPerformed(java.awt.event.ActionEvent e) {
*/
public void haltpollButtonActionPerformed() {
SerialTrafficController stc = _memo.getTrafficController();
stc.setPollNetwork(!stc.getPollNetwork());
if (stc.getPollNetwork())
haltPollButton.setText(Bundle.getMessage("HaltPollButtonText"));
else
haltPollButton.setText(Bundle.getMessage("ResumePollButtonText"));
stc.setPollNetwork(!stc.getPollNetwork());
}
/**
* Initialize an Output Test.
Expand Down

0 comments on commit 24850a7

Please sign in to comment.