7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-19 23:21:41 +00:00

Allow display of each new phase

KeepRefreshing is gated so if we get a bunch of phases in a row, they
won't be shown until you get past a slower phase.  By yielding here, we
ensure that the dialog is updated and the user knows which phase of DRC
they are on.
This commit is contained in:
Seth Hillbrand 2025-01-10 19:19:02 -08:00
parent 8746313ce3
commit ae4ef7c062

View File

@ -1715,7 +1715,9 @@ bool DRC_ENGINE::ReportPhase( const wxString& aMessage )
return true;
m_progressReporter->AdvancePhase( aMessage );
return m_progressReporter->KeepRefreshing( false );
bool retval = m_progressReporter->KeepRefreshing( false );
wxSafeYield( nullptr, true ); // Force an update for the message
return retval;
}