Stub out MacOpenFile for kicad-cli
Avoids needing to link in the project manager and is probably not necessary If it ends up being necessary, someone can write a new implementation.
This commit is contained in:
parent
5e72a1008b
commit
1ebe3dc131
|
@ -355,12 +355,7 @@ void PGM_KICAD::OnPgmExit()
|
|||
void PGM_KICAD::MacOpenFile( const wxString& aFileName )
|
||||
{
|
||||
#if defined( __WXMAC__ )
|
||||
|
||||
KICAD_MANAGER_FRAME* frame = (KICAD_MANAGER_FRAME*) App().GetTopWindow();
|
||||
|
||||
if( !aFileName.empty() && wxFileExists( aFileName ) )
|
||||
frame->LoadProject( wxFileName( aFileName ) );
|
||||
|
||||
wxFAIL_MSG( "kicad-cli should not call MacOpenFile" );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue