Don't allow resetting read-only themes

This commit is contained in:
Jon Evans 2020-10-18 22:20:43 -04:00
parent ba503bedcf
commit 88fbb9d367
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ void PANEL_COLOR_SETTINGS::OnBtnOpenThemeFolderClicked( wxCommandEvent& event )
void PANEL_COLOR_SETTINGS::ResetPanel() void PANEL_COLOR_SETTINGS::ResetPanel()
{ {
if( !m_currentSettings ) if( !m_currentSettings || m_currentSettings->IsReadOnly() )
return; return;
for( const std::pair<const int, COLOR_SWATCH*>& pair : m_swatches ) for( const std::pair<const int, COLOR_SWATCH*>& pair : m_swatches )