Skip to content

Commit 15dca33

Browse files
committed
Disable Load/Save settings buttons during acquisition
1 parent 03af98e commit 15dca33

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

Source/UI/AnalogIOInterface.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ void AnalogIOInterface::setInterfaceEnabledState(bool newState)
107107
if (channelDirectionComboBoxes[i] != nullptr)
108108
channelDirectionComboBoxes[i]->setEnabled(newState);
109109
}
110+
111+
if (saveSettingsButton != nullptr)
112+
saveSettingsButton->setEnabled(newState);
113+
114+
if (loadSettingsButton != nullptr)
115+
loadSettingsButton->setEnabled(newState);
110116
}
111117

112118
void AnalogIOInterface::updateSettings()

Source/UI/NeuropixelsV1Interface.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,12 @@ void NeuropixelsV1Interface::setInterfaceEnabledState(bool enabledState)
892892

893893
if (gainCalibrationFileButton != nullptr)
894894
gainCalibrationFileButton->setEnabled(enabledState);
895+
896+
if (saveSettingsButton != nullptr)
897+
saveSettingsButton->setEnabled(enabledState);
898+
899+
if (loadSettingsButton != nullptr)
900+
loadSettingsButton->setEnabled(enabledState);
895901
}
896902

897903
void NeuropixelsV1Interface::startAcquisition()

Source/UI/NeuropixelsV2eProbeInterface.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,12 @@ void NeuropixelsV2eProbeInterface::setInterfaceEnabledState(bool enabledState)
544544

545545
if (gainCorrectionFileButton != nullptr)
546546
gainCorrectionFileButton->setEnabled(enabledState);
547+
548+
if (saveSettingsButton != nullptr)
549+
saveSettingsButton->setEnabled(enabledState);
550+
551+
if (loadSettingsButton != nullptr)
552+
loadSettingsButton->setEnabled(enabledState);
547553
}
548554

549555
void NeuropixelsV2eProbeInterface::startAcquisition()

Source/UI/OutputClockInterface.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ void OutputClockInterface::setInterfaceEnabledState(bool newState)
114114

115115
if (gateRunButton != nullptr)
116116
gateRunButton->setEnabled(newState);
117+
118+
if (saveSettingsButton != nullptr)
119+
saveSettingsButton->setEnabled(newState);
120+
121+
if (loadSettingsButton != nullptr)
122+
loadSettingsButton->setEnabled(newState);
117123
}
118124

119125
void OutputClockInterface::updateSettings()

0 commit comments

Comments
 (0)