Commit 2fbe1447 authored by dickelbeck's avatar dickelbeck
Browse files

beautify

parent 0104e614
Loading
Loading
Loading
Loading
+48 −43
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@
void WinEDA_MainFrame::Load_Prj_Config()
/*******************************************/
{

    if( !wxFileExists( m_PrjFileName ) )
    {
        wxString msg = _( "Project File <" ) + m_PrjFileName + _( "> not found" );
@@ -36,8 +35,10 @@ void WinEDA_MainFrame::Load_Prj_Config()
    wxString msg = _( "\nWorking dir: " ) + wxGetCwd();
    msg << _( "\nProject: " ) << m_PrjFileName << wxT( "\n" );
    PrintMsg( msg );

#ifdef KICAD_PYTHON
	PyHandler::GetInstance()->TriggerEvent( wxT("kicad::LoadProject"), PyHandler::Convert(m_PrjFileName) );
    PyHandler::GetInstance()->TriggerEvent( wxT( "kicad::LoadProject" ),
        PyHandler::Convert( m_PrjFileName ) );
#endif
}

@@ -47,6 +48,7 @@ void WinEDA_MainFrame::Save_Prj_Config()
/*********************************************/
{
    wxString FullFileName;

    wxString mask( wxT( "*" ) );

    g_Prj_Config_Filename_ext = wxT( ".pro" );
@@ -63,10 +65,13 @@ wxString mask( wxT("*"));
        wxFD_SAVE,
        TRUE
        );
	if ( FullFileName.IsEmpty() ) return;

    if( FullFileName.IsEmpty() )
        return;

    /* ecriture de la configuration */
    g_EDA_Appl->WriteProjectConfig( FullFileName, wxT( "/general" ), CfgParamList );
}


// vim: set tabstop=4 : noexpandtab :