mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-14 17:19:35 +00:00
Don't allow resetting read-only themes
This commit is contained in:
parent
ba503bedcf
commit
88fbb9d367
@ -63,7 +63,7 @@ void PANEL_COLOR_SETTINGS::OnBtnOpenThemeFolderClicked( wxCommandEvent& event )
|
||||
|
||||
void PANEL_COLOR_SETTINGS::ResetPanel()
|
||||
{
|
||||
if( !m_currentSettings )
|
||||
if( !m_currentSettings || m_currentSettings->IsReadOnly() )
|
||||
return;
|
||||
|
||||
for( const std::pair<const int, COLOR_SWATCH*>& pair : m_swatches )
|
||||
|
Loading…
Reference in New Issue
Block a user