Browse Source

Ensure radio buttons are grouped

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21496
pull/18/head
Seth Hillbrand 2 months ago
parent
commit
c072133fa4
  1. 5
      include/widgets/filedlg_hook_new_library.h

5
include/widgets/filedlg_hook_new_library.h

@ -32,8 +32,9 @@ public:
virtual void AddCustomControls( wxFileDialogCustomize& customizer ) override
{
m_addGlobalTableEntry = customizer.AddRadioButton( _( "Add new library to global library table" ) );
customizer.AddStaticText( wxS( " " ) );
// Radio buttons are only grouped if they are consecutive. Since we want padding, we need to
// Add padding to the first radio button
m_addGlobalTableEntry = customizer.AddRadioButton( _( "Add new library to global library table" ) + wxS( " " ) );
m_addProjectTableEntry = customizer.AddRadioButton( _( "Add new library to project library table" ) );
if( m_useGlobalTable )

Loading…
Cancel
Save