Grid dropdown doesn't always live in the same toolbar.
Also fixes typo in grid properties dialog. Fixes: lp:1839224 * https://bugs.launchpad.net/kicad/+bug/1839224
This commit is contained in:
parent
9fe7bfb596
commit
4d53ff9811
|
@ -251,7 +251,7 @@ void EDA_DRAW_FRAME::OnUpdateSelectGrid( wxUpdateUIEvent& aEvent )
|
|||
{
|
||||
// No need to update the grid select box if it doesn't exist or the grid setting change
|
||||
// was made using the select box.
|
||||
if( m_gridSelectBox == NULL || m_auxiliaryToolBar == NULL )
|
||||
if( m_gridSelectBox == NULL )
|
||||
return;
|
||||
|
||||
int select = wxNOT_FOUND;
|
||||
|
|
|
@ -132,7 +132,7 @@ bool DIALOG_SET_GRID::TransferDataToWindow()
|
|||
m_comboBoxGrid2->SetSelection( m_parent->m_FastGrid2 );
|
||||
|
||||
int hk1 = ACTIONS::gridFast1.GetHotKey();
|
||||
int hk2 = ACTIONS::gridFast1.GetHotKey();
|
||||
int hk2 = ACTIONS::gridFast2.GetHotKey();
|
||||
m_grid1HotKey->SetLabel( wxString::Format( wxT( "(%s)" ), KeyNameFromKeyCode( hk1 ) ) );
|
||||
m_grid2HotKey->SetLabel( wxString::Format( wxT( "(%s)" ), KeyNameFromKeyCode( hk2 ) ) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue