Fix wxFormBuilder switching the default tab.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15925
This commit is contained in:
parent
bc0fe74f72
commit
f4b872226b
|
@ -568,7 +568,7 @@ DIALOG_PAD_PROPERTIES_BASE::DIALOG_PAD_PROPERTIES_BASE( wxWindow* parent, wxWind
|
|||
m_panelGeneral->SetSizer( bGeneralSizer );
|
||||
m_panelGeneral->Layout();
|
||||
bGeneralSizer->Fit( m_panelGeneral );
|
||||
m_notebook->AddPage( m_panelGeneral, _("General"), false );
|
||||
m_notebook->AddPage( m_panelGeneral, _("General"), true );
|
||||
m_connectionsPanel = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizerPanelConnections;
|
||||
bSizerPanelConnections = new wxBoxSizer( wxVERTICAL );
|
||||
|
@ -876,7 +876,7 @@ DIALOG_PAD_PROPERTIES_BASE::DIALOG_PAD_PROPERTIES_BASE( wxWindow* parent, wxWind
|
|||
m_connectionsPanel->SetSizer( bSizerPanelConnections );
|
||||
m_connectionsPanel->Layout();
|
||||
bSizerPanelConnections->Fit( m_connectionsPanel );
|
||||
m_notebook->AddPage( m_connectionsPanel, _("Connections"), true );
|
||||
m_notebook->AddPage( m_connectionsPanel, _("Connections"), false );
|
||||
m_localSettingsPanel = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizerPanelClearance;
|
||||
bSizerPanelClearance = new wxBoxSizer( wxVERTICAL );
|
||||
|
|
|
@ -128,11 +128,11 @@
|
|||
<property name="window_extra_style"></property>
|
||||
<property name="window_name"></property>
|
||||
<property name="window_style"></property>
|
||||
<object class="notebookpage" expanded="0">
|
||||
<object class="notebookpage" expanded="1">
|
||||
<property name="bitmap"></property>
|
||||
<property name="label">General</property>
|
||||
<property name="select">0</property>
|
||||
<object class="wxPanel" expanded="0">
|
||||
<property name="select">1</property>
|
||||
<object class="wxPanel" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
<property name="RightDockable">1</property>
|
||||
|
@ -184,7 +184,7 @@
|
|||
<property name="window_name"></property>
|
||||
<property name="window_style">wxTAB_TRAVERSAL</property>
|
||||
<event name="OnUpdateUI">OnUpdateUI</event>
|
||||
<object class="wxBoxSizer" expanded="0">
|
||||
<object class="wxBoxSizer" expanded="1">
|
||||
<property name="minimum_size"></property>
|
||||
<property name="name">bGeneralSizer</property>
|
||||
<property name="orient">wxHORIZONTAL</property>
|
||||
|
@ -6872,7 +6872,7 @@
|
|||
<object class="notebookpage" expanded="1">
|
||||
<property name="bitmap"></property>
|
||||
<property name="label">Connections</property>
|
||||
<property name="select">1</property>
|
||||
<property name="select">0</property>
|
||||
<object class="wxPanel" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
<property name="LeftDockable">1</property>
|
||||
|
|
Loading…
Reference in New Issue