7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-07 18:35:32 +00:00

pagelayout_editor: lock panel update during widgets rebuild.

The rebuild is much faster.
This commit is contained in:
jean-pierre charras 2024-10-17 10:02:36 +02:00
parent 350352332e
commit b60acbb635

View File

@ -40,7 +40,7 @@
#include "tools/pl_selection_tool.h"
#include <dialogs/html_message_box.h>
#include <wx/wupdlock.h>
/**
* Minimum drawing sheet text default size in millmeters from #PROPERTIES_FRAME.
@ -230,6 +230,9 @@ void PROPERTIES_FRAME::CopyPrmsFromItemToPanel( DS_DATA_ITEM* aItem )
return;
}
// No not update display during rebuild:
wxWindowUpdateLocker noUpdates( this );
wxString msg;
// Set parameters common to all DS_DATA_ITEM types