Only suppress all-green (0) error counts when DRC hasn't been run.

This commit is contained in:
Jeff Young 2020-10-20 16:57:09 +01:00
parent f772e49d25
commit 229a505b11
1 changed files with 3 additions and 3 deletions

View File

@ -854,11 +854,11 @@ void DIALOG_DRC::updateDisplayedCounts()
numExcluded += m_footprintWarningsProvider->GetCount( RPT_SEVERITY_EXCLUSION );
}
if( !m_drcRun )
{
if( !m_drcRun && numErrors == 0 )
numErrors = -1;
if( !m_drcRun && numWarnings == 0 )
numWarnings = -1;
}
m_errorsBadge->SetMaximumNumber( numErrors );
m_errorsBadge->UpdateNumber( numErrors, RPT_SEVERITY_ERROR );