Get rid of wx popups when opening a read-only project
This commit is contained in:
parent
b314e0828c
commit
3ac5fd6342
|
@ -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() );
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue