manage libraries dialog: show new state of widgets as soon as the context-menu
activate/deactivate changes their state From master branch Fixes #14517 https://gitlab.com/kicad/code/kicad/issues/14517
This commit is contained in:
parent
d7b2247878
commit
724262651f
|
@ -61,10 +61,13 @@ void LIB_TABLE_GRID_TRICKS::doPopupSelection( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
LIB_TABLE_GRID* tbl = (LIB_TABLE_GRID*) m_grid->GetTable();
|
LIB_TABLE_GRID* tbl = (LIB_TABLE_GRID*) m_grid->GetTable();
|
||||||
|
|
||||||
|
bool selected_state = menu_id == LIB_TABLE_GRID_TRICKS_ACTIVATE_SELECTED;
|
||||||
|
|
||||||
for( int row = m_sel_row_start; row < m_sel_row_start + m_sel_row_count; ++row )
|
for( int row = m_sel_row_start; row < m_sel_row_start + m_sel_row_count; ++row )
|
||||||
{
|
tbl->SetValueAsBool( row, 0, selected_state );
|
||||||
tbl->SetValueAsBool( row, 0, menu_id == LIB_TABLE_GRID_TRICKS_ACTIVATE_SELECTED );
|
|
||||||
}
|
// Ensure the new state (on/off) of the widgets is immediately shown:
|
||||||
|
m_grid->Refresh();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue