More busy cursor tightening.

Fixes https://gitlab.com/kicad/code/kicad/issues/11648
This commit is contained in:
Jeff Young 2022-10-11 12:36:15 +01:00
parent c9f11827a7
commit ad5df7f4cc
2 changed files with 5 additions and 3 deletions

View File

@ -232,7 +232,10 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
try try
{ {
Schematic().SetRoot( pi->Load( fullFileName, &Schematic() ) ); {
wxBusyCursor busy;
Schematic().SetRoot( pi->Load( fullFileName, &Schematic() ) );
}
if( !pi->GetError().IsEmpty() ) if( !pi->GetError().IsEmpty() )
{ {

View File

@ -746,8 +746,6 @@ int KICAD_MANAGER_CONTROL::ShowPlayer( const TOOL_EVENT& aEvent )
if( !m_loading.try_lock() ) if( !m_loading.try_lock() )
return -1; return -1;
wxBusyCursor dummy;
const std::lock_guard<std::mutex> lock( m_loading, std::adopt_lock ); const std::lock_guard<std::mutex> lock( m_loading, std::adopt_lock );
try try
@ -802,6 +800,7 @@ int KICAD_MANAGER_CONTROL::ShowPlayer( const TOOL_EVENT& aEvent )
} }
} }
wxBusyCursor busy;
player->Show( true ); player->Show( true );
} }