Skip to content

Commit

Permalink
small fix for last commit; reenable edit position list btn
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon committed Sep 4, 2024
1 parent b884329 commit a5aa354
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private void createUserInterface() {
"Time Points", acqSettings.isUsingTimePoints());
pnlTimePoints_ = new TimePointsPanel(model_, cbxUseTimePoints_);
// disable elements based on acqSettings
pnlTimePoints_.setEnabled(acqSettings.isUsingTimePoints());
pnlTimePoints_.setPanelEnabled(acqSettings.isUsingTimePoints());

// acquisition buttons
pnlButtons_ = new Panel();
Expand Down Expand Up @@ -244,14 +244,14 @@ private void createEventHandlers() {
cbxUseMultiplePositions_.registerListener(e -> {
final boolean isSelected = cbxUseMultiplePositions_.isSelected();
model_.acquisitions().settingsBuilder().useMultiplePositions(isSelected);
pnlMultiPositions_.setEnabled(isSelected);
pnlMultiPositions_.setPanelEnabled(isSelected);
});

// time points
cbxUseTimePoints_.registerListener(e -> {
final boolean selected = cbxUseTimePoints_.isSelected();
model_.acquisitions().settingsBuilder().useTimePoints(selected);
pnlTimePoints_.setEnabled(selected);
pnlTimePoints_.setPanelEnabled(selected);
//updateDurationLabels();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ private void createEventHandlers() {
});
}

@Override
public void setEnabled(final boolean state) {
public void setPanelEnabled(final boolean state) {
lblNumTimePoints_.setEnabled(state);
lblTimePointInterval_.setEnabled(state);
spnNumTimePoints_.setEnabled(state);
Expand Down

0 comments on commit a5aa354

Please sign in to comment.