Fix progress dialog main frame focus issue on Linux.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8718
This commit is contained in:
parent
2479e1d7b1
commit
d90094de39
|
@ -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
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue