Skip to content

Commit

Permalink
Merge branch 'master' of github.com:sandialabs/InterSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Jan 19, 2024
2 parents 83f837e + 1770718 commit ab2b2ba
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/ExportSpecFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1929,8 +1929,8 @@ void ExportSpecFileTool::refreshSampleAndDetectorOptions()
}//for( const int sample : samplesToUse )

m_sumDetsPerSample->setHidden( (max_records <= 2) || !mult_dets_per_sample );
if( !mult_dets_per_sample )
m_filterDetector->hide();
m_filterDetector->setHidden( !mult_dets_per_sample );
m_detectorFilterCbs->setHidden( !mult_dets_per_sample || !m_filterDetector->isChecked() );

size_t num_sample_showing = 0, num_option_showing = 0;
for( const auto w : m_samplesHolder->children() )
Expand Down Expand Up @@ -2134,12 +2134,11 @@ void ExportSpecFileTool::handleFilterDetectorCbChanged()
if( !m_filterDetector || !m_detectorFilterCbs )
return;

if( m_filterDetector->isChecked() )
{
m_detectorFilterCbs->show();
}else
const bool use_all_det = (m_filterDetector->isHidden() || !m_filterDetector->isChecked());
m_detectorFilterCbs->setHidden( use_all_det );

if( use_all_det )
{
m_detectorFilterCbs->hide();
for( const auto w : m_detectorFilterCbs->children() )
{
WCheckBox *cb = dynamic_cast<WCheckBox *>( w );
Expand Down

0 comments on commit ab2b2ba

Please sign in to comment.