Non-KiCad Schematic Importers: New project when running standalone
Create a new project when running eeschema standalone and importing a non-KiCad Project. If we have the project manager open, then we instead use the existing project and load everything there.
This commit is contained in:
parent
a0889705e7
commit
6c29f54988
|
@ -663,8 +663,8 @@ void SCH_EDIT_FRAME::OnImportProject( wxCommandEvent& aEvent )
|
||||||
if( !AskToSaveChanges() )
|
if( !AskToSaveChanges() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Set the project location if none is set
|
// Set the project location if none is set or if we are running in standalone mode
|
||||||
bool setProject = Prj().GetProjectFullName().IsEmpty();
|
bool setProject = Prj().GetProjectFullName().IsEmpty() || Kiface().IsSingle();
|
||||||
wxString path = wxPathOnly( Prj().GetProjectFullName() );
|
wxString path = wxPathOnly( Prj().GetProjectFullName() );
|
||||||
|
|
||||||
std::list<std::pair<const wxString, const SCH_IO_MGR::SCH_FILE_T>> loaders;
|
std::list<std::pair<const wxString, const SCH_IO_MGR::SCH_FILE_T>> loaders;
|
||||||
|
|
Loading…
Reference in New Issue