mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-21 03:34:03 +01:00
refactor on the gui from review missed out in pr
This commit is contained in:
1 parent
621bb6cbfd
commit
26acde979f
1 file changed
+3
-2
@@ -361,8 +361,9 @@ void qTabSettings::GetCounterMask() {
|
||||
auto retval = sls::getSetBits(det->getCounterMask().tsquash(
|
||||
"Counter mask is inconsistent for all detectors."));
|
||||
// default to unchecked
|
||||
std::for_each(counters, [](auto &i) { i.setChecked(false); });
|
||||
// std::for_each(counters.begin(), counters.end(), )
|
||||
for (auto p : counters) {
|
||||
p->setChecked(false);
|
||||
}
|
||||
// if retval[i] = 2, chkCounter2 is checked
|
||||
for (auto i : retval) {
|
||||
if (i > 3) {
|
||||
|
||||
Reference in new issue
Block a user