Disable "Override individual item colors" on read-only themes.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15426
(cherry picked from commit 88db775d32
)
This commit is contained in:
parent
34d2aeaac3
commit
043892bdc6
|
@ -159,6 +159,7 @@ void PANEL_COLOR_SETTINGS::OnThemeChanged( wxCommandEvent& event )
|
||||||
m_cbTheme->SetSelection( idx );
|
m_cbTheme->SetSelection( idx );
|
||||||
|
|
||||||
m_optOverrideColors->SetValue( newSettings->GetOverrideSchItemColors() );
|
m_optOverrideColors->SetValue( newSettings->GetOverrideSchItemColors() );
|
||||||
|
m_optOverrideColors->Enable( !newSettings->IsReadOnly() );
|
||||||
|
|
||||||
*m_currentSettings = *newSettings;
|
*m_currentSettings = *newSettings;
|
||||||
updateSwatches();
|
updateSwatches();
|
||||||
|
@ -174,6 +175,7 @@ void PANEL_COLOR_SETTINGS::OnThemeChanged( wxCommandEvent& event )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_optOverrideColors->SetValue( selected->GetOverrideSchItemColors() );
|
m_optOverrideColors->SetValue( selected->GetOverrideSchItemColors() );
|
||||||
|
m_optOverrideColors->Enable( !selected->IsReadOnly() );
|
||||||
|
|
||||||
*m_currentSettings = *selected;
|
*m_currentSettings = *selected;
|
||||||
onNewThemeSelected();
|
onNewThemeSelected();
|
||||||
|
|
Loading…
Reference in New Issue