Get rid of wx popups when opening a read-only project

This commit is contained in:
Jon Evans 2021-02-03 19:11:02 -05:00
parent b314e0828c
commit 3ac5fd6342
2 changed files with 6 additions and 0 deletions

View File

@ -131,6 +131,9 @@ bool JSON_SETTINGS::LoadFromFile( const wxString& aDirectory )
backed_up = true;
}
// Silence popups if legacy file is read-only
wxLogNull doNotLog;
wxConfigBase::DontCreateOnDemand();
auto cfg = std::make_unique<wxFileConfig>( wxT( "" ), wxT( "" ), aPath.GetFullPath() );

View File

@ -595,6 +595,9 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
return false;
}
// Get rid of any existing warnings about the old board
GetInfoBar()->Dismiss();
// Loading a complex project and build data can be time
// consuming, so display a busy cursor
wxBusyCursor dummy;