Skip to content

Commit

Permalink
Merge pull request #299 from bls337/main
Browse files Browse the repository at this point in the history
small fix for last commit; reenable edit position list btn
  • Loading branch information
bls337 authored Sep 4, 2024
2 parents b884329 + a5aa354 commit 4fcc429
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 4fcc429

Please sign in to comment.