Fix bone-headed mistake when moving panel disabling.

This commit is contained in:
Jeff Young 2021-10-07 00:16:20 +01:00
parent ad85f8078a
commit 57c7d663b0
2 changed files with 3 additions and 2 deletions

View File

@ -105,7 +105,8 @@ void DIALOG_SCHEMATIC_SETUP::OnPageChange( wxBookCtrlEvent& event )
{
int page = event.GetSelection();
KIUI::Disable( m_treebook->GetPage( page ) );
if( Prj().IsReadOnly() )
KIUI::Disable( m_treebook->GetPage( page ) );
// Enable the reset button only if the page is resettable
if( m_resetButton )

View File

@ -142,7 +142,7 @@ void DIALOG_BOARD_SETUP::OnPageChange( wxBookCtrlEvent& event )
m_physicalStackup->OnLayersOptionsChanged( m_layers->GetUILayerMask() );
else if( page == m_layerSetupPage )
m_layers->SyncCopperLayers( m_physicalStackup->GetCopperLayerCount() );
else
else if( Prj().IsReadOnly() )
KIUI::Disable( m_treebook->GetPage( page ) );
#ifdef __WXMAC__