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

Return wxID_OK from plot dialog.

This commit is contained in:
Jeff Young 2025-01-16 17:18:14 +00:00
parent 6f32ecafe5
commit 6eaeacfe79
2 changed files with 3 additions and 4 deletions

View File

@ -494,7 +494,7 @@ bool DIALOG_EXPORT_NETLIST::TransferDataFromWindow()
wxString fileExt;
wxString title = _( "Save Netlist File" );
if (m_job)
if( m_job )
{
NetlistUpdateOpt();
return true;

View File

@ -439,7 +439,7 @@ void DIALOG_PLOT_SCHEMATIC::OnPlotCurrent( wxCommandEvent& event )
void DIALOG_PLOT_SCHEMATIC::OnPlotAll( wxCommandEvent& event )
{
if (!m_job)
if( !m_job )
{
plotSchematic( true );
}
@ -463,8 +463,7 @@ void DIALOG_PLOT_SCHEMATIC::OnPlotAll( wxCommandEvent& event )
COLOR_SETTINGS* colors = getColorSettings();
m_job->m_theme = colors->GetName();
Close();
event.Skip(); // Allow normal close action
}
}