Skip to content

Commit

Permalink
Correct function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhamr837 committed Mar 26, 2021
1 parent 7e65e64 commit d1fa2d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/opendatakit/suitcase/ui/IOPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public IOPanel(MainPanel parent) {
this.add(splitPane, LayoutDefault.getDefaultGbc());
}

public void setButtonState(boolean pushButtonState,boolean pullButtonState,boolean resetButtonState)
public void setButtonsState(boolean pushButtonState,boolean pullButtonState,boolean resetButtonState)
{
pushPanel.setButtonsState(pushButtonState,resetButtonState);
pullPanel.setsPullButtonState(pullButtonState);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/opendatakit/suitcase/ui/PullPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void actionPerformed(ActionEvent e) {
DialogUtils.showError(error, true);
} else {
// disable download button
parent.setButtonState(false,false,false);
parent.setButtonsState(false,false,false);

sPullButton.setText(DOWNLOADING_LABEL);

Expand Down Expand Up @@ -134,7 +134,7 @@ public void propertyChange(PropertyChangeEvent evt) {
if (evt.getNewValue() != null && evt.getPropertyName().equals(SuitcaseSwingWorker.DONE_PROPERTY)) {
// re-enable download button and restore its label
sPullButton.setText(DOWNLOAD_LABEL);
parent.setButtonState(true,true,true);
parent.setButtonsState(true,true,true);
}
}
}
6 changes: 3 additions & 3 deletions src/main/java/org/opendatakit/suitcase/ui/PushPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void actionPerformed(ActionEvent e) {
DialogUtils.showError(error, true);
} else {
sPushButton.setText(PUSHING_LABEL);
parent.setButtonState(false,false,false);
parent.setButtonsState(false,false,false);

UploadTask worker = new UploadTask(parent.getCloudEndpointInfo(), dataPathChooser.getPath(),
sVersionPushText.getText(), true, null, null);
Expand All @@ -118,7 +118,7 @@ public void actionPerformed(ActionEvent e) {
if(DialogUtils.promptConfirm("Are you sure you want to RESET? "
+ "This will delete ALL your data on the server?", true, false)) {
sResetButton.setText(RESETTING_LABEL);
parent.setButtonState(false,false , false);
parent.setButtonsState(false,false , false);

ResetTask worker = new ResetTask(sVersionPushText.getText(), true);
worker.addPropertyChangeListener(parent.getProgressBar());
Expand All @@ -142,7 +142,7 @@ public void setButtonsState(boolean pushButtonState , boolean resetButtonState)
@Override
public void propertyChange(PropertyChangeEvent evt) {
if (evt.getNewValue() != null && evt.getPropertyName().equals(SuitcaseSwingWorker.DONE_PROPERTY)) {
parent.setButtonState(true,true,true);
parent.setButtonsState(true,true,true);
sPushButton.setText(PUSH_LABEL);
sResetButton.setText(RESET_LABEL);
}
Expand Down

0 comments on commit d1fa2d1

Please sign in to comment.