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:
Jon Evans 2022-12-13 12:09:59 -05:00
parent 5e72a1008b
commit 1ebe3dc131
1 changed files with 1 additions and 6 deletions

View File

@ -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
}