Fix progress dialog main frame focus issue on Linux.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8718
This commit is contained in:
Wayne Stambaugh 2021-09-16 15:27:29 -04:00
parent 2479e1d7b1
commit d90094de39
2 changed files with 10 additions and 0 deletions

View File

@ -285,6 +285,11 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
failedLoad = true;
}
// This fixes a focus issue after the progress reporter is done on GTK. It shouldn't
// cause any issues on macOS and Windows. If it does, it will have to be conditionally
// compiled.
Raise();
if( failedLoad )
{
// Do not leave g_RootSheet == NULL because it is expected to be

View File

@ -739,6 +739,11 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
return false;
}
// This fixes a focus issue after the progress reporter is done on GTK. It shouldn't
// cause any issues on macOS and Windows. If it does, it will have to be conditionally
// compiled.
Raise();
SetBoard( loadedBoard );
if( GFootprintList.GetCount() == 0 )