mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Zone Manager: Add freeze/thaw around zone selection change to improve UI responsiveness
This commit is contained in:
parent
7f114d737e
commit
fd34750c4b
@ -213,6 +213,8 @@ void DIALOG_ZONE_MANAGER::onDialogResize( wxSizeEvent& event )
|
||||
|
||||
void DIALOG_ZONE_MANAGER::OnZoneSelectionChanged( ZONE* zone )
|
||||
{
|
||||
Freeze();
|
||||
|
||||
for( ZONE_SELECTION_CHANGE_NOTIFIER* i :
|
||||
std::list<ZONE_SELECTION_CHANGE_NOTIFIER*>{ m_panelZoneProperties, m_zoneViewer } )
|
||||
{
|
||||
@ -220,6 +222,7 @@ void DIALOG_ZONE_MANAGER::OnZoneSelectionChanged( ZONE* zone )
|
||||
}
|
||||
|
||||
Layout();
|
||||
Thaw();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user