Browse Source

Reduce some flickering in PCM.

newinvert
Alex 3 years ago
parent
commit
b592017495
  1. 6
      kicad/pcm/dialogs/dialog_pcm.cpp

6
kicad/pcm/dialogs/dialog_pcm.cpp

@ -57,6 +57,8 @@ DIALOG_PCM::DIALOG_PCM( wxWindow* parent, std::shared_ptr<PLUGIN_CONTENT_MANAGER
DIALOG_PCM_BASE( parent ),
m_pcm( pcm )
{
SetDoubleBuffered( true );
m_defaultBitmap = KiBitmap( BITMAPS::icon_pcm );
m_pcm->SetDialogWindow( this );
@ -312,6 +314,8 @@ void DIALOG_PCM::OnRepositoryChoice( wxCommandEvent& event )
void DIALOG_PCM::setRepositoryData( const wxString& aRepositoryId )
{
m_dialogNotebook->Freeze();
if( m_pcm->CacheRepository( aRepositoryId ) )
{
for( const auto& [ packageType, packagesView ] : m_repositoryContentPanels )
@ -377,6 +381,8 @@ void DIALOG_PCM::setRepositoryData( const wxString& aRepositoryId )
m_dialogNotebook->SetPageText( 0, wxString::Format( _( "Repository (%d)" ),
(int) packages.size() ) );
}
m_dialogNotebook->Thaw();
}

Loading…
Cancel
Save