Pre-select current net in net selector.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16320
This commit is contained in:
Jeff Young 2023-12-12 13:56:36 +00:00
parent e000acb768
commit d3ab677197
1 changed files with 3 additions and 0 deletions

View File

@ -184,6 +184,9 @@ public:
// Better to clear it.
m_filterCtrl->Clear();
m_listBox->SetStringSelection( GetStringValue() );
m_filterCtrl->SetFocus();
// The updateSize() call in GetAdjustedSize() leaves the height off-by-one for
// some reason, so do it again.
updateSize();