Avoid altering the configured output path during run in case of empty paths

This commit is contained in:
Marek Roszko
2025-01-14 20:44:51 -05:00
parent 1d8ed071b8
commit 5c3004b96e
38 changed files with 121 additions and 87 deletions
+2 -2
View File
@@ -226,7 +226,7 @@ void DIALOG_PLOT_SCHEMATIC::initDlg()
// And then hide it
m_plotFormatOpt->Hide();
m_outputDirectoryName->SetValue( m_job->GetOutputPath() );
m_outputDirectoryName->SetValue( m_job->GetConfiguredOutputPath() );
}
}
@@ -455,7 +455,7 @@ void DIALOG_PLOT_SCHEMATIC::OnPlotAll( wxCommandEvent& event )
m_job->m_PDFMetadata = m_plotPDFMetadata->GetValue();
m_job->m_plotDrawingSheet = m_plotDrawingSheet->GetValue();
m_job->m_plotAll = true;
m_job->SetOutputPath( m_outputDirectoryName->GetValue() );
m_job->SetConfiguredOutputPath( m_outputDirectoryName->GetValue() );
m_job->m_HPGLPlotOrigin =
static_cast<JOB_HPGL_PLOT_ORIGIN_AND_UNITS>( m_plotOriginOpt->GetSelection() );