Re-enable non-KiCad board import when non-standalone

Partial revert of ec2cd99405

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16978
This commit is contained in:
Jon Evans 2024-02-15 12:14:32 -05:00
parent 944a3d7962
commit 4ec390838b
1 changed files with 1 additions and 4 deletions

View File

@ -278,10 +278,7 @@ bool PCB_EDIT_FRAME::Files_io_from_id( int id )
case ID_IMPORT_NON_KICAD_BOARD:
{
// Only standalone mode can directly load a new document
if( !Kiface().IsSingle() )
return false;
// Note: we explicitly allow this even if not in standalone mode for now, even though it is dangerous.
int open_ctl = KICTL_NONKICAD_ONLY;
wxString fileName; // = Prj().AbsolutePath( GetBoard()->GetFileName() );