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

Clear status at start of jobset run.

This commit is contained in:
Jeff Young 2025-01-17 23:00:14 +00:00
parent d74744596e
commit 3a3e2fe835

View File

@ -175,6 +175,15 @@ public:
Disconnect( wxEVT_MENU, wxCommandEventHandler( PANEL_JOBSET_OUTPUT::onMenu ), nullptr, this );
}
void ClearStatus()
{
JOBSET_OUTPUT* output = GetOutput();
wxCHECK( output, /*void*/ );
output->m_lastRunSuccess = std::nullopt;
m_statusBitmap->SetBitmap( wxNullBitmap );
}
void UpdateStatus()
{
JOBSET_OUTPUT* output = GetOutput();
@ -205,10 +214,13 @@ public:
virtual void OnGenerate( wxCommandEvent& event ) override
{
ClearStatus();
Refresh();
CallAfter(
[this]()
{
PROJECT& project = m_frame->Kiway().Prj();
PROJECT& project = m_frame->Kiway().Prj();
m_panelParent->EnsurePcbSchFramesOpen();
wxFileName fn = project.GetProjectFullName();
@ -901,6 +913,11 @@ void PANEL_JOBSET::OnGenerateAllOutputsClick( wxCommandEvent& event )
return;
}
for( PANEL_JOBSET_OUTPUT* panel : GetOutputPanels() )
panel->ClearStatus();
Refresh();
CallAfter(
[this]()
{