PCM: Disable actions while task manager is open

Fixes https://gitlab.com/kicad/code/kicad/-/issues/9788
This commit is contained in:
Jon Evans 2021-11-27 08:46:19 -05:00
parent 4944ff0a3c
commit fca3367873
1 changed files with 8 additions and 0 deletions

View File

@ -388,6 +388,10 @@ void DIALOG_PCM::OnApplyChangesClicked( wxCommandEvent& event )
if( m_pendingActions.size() == 0 )
return;
m_sdbSizer1OK->Disable();
m_sdbSizer1Apply->Disable();
m_sdbSizer1Cancel->Disable();
PCM_TASK_MANAGER task_manager( m_pcm );
for( const PENDING_ACTION& action : m_pendingActions )
@ -400,6 +404,10 @@ void DIALOG_PCM::OnApplyChangesClicked( wxCommandEvent& event )
task_manager.RunQueue( this );
m_sdbSizer1OK->Enable();
m_sdbSizer1Apply->Enable();
m_sdbSizer1Cancel->Enable();
setInstalledPackages();
wxCommandEvent dummy;
OnDiscardChangesClicked( dummy );