createThemeList takes a filename, not a name

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7075
This commit is contained in:
Jon Evans 2021-03-21 21:03:01 -04:00
parent cc8413c841
commit e0fdfbe1d5
2 changed files with 5 additions and 2 deletions

View File

@ -101,8 +101,7 @@ bool PANEL_COLOR_SETTINGS::Show( bool show )
void PANEL_COLOR_SETTINGS::OnLeftDownTheme( wxMouseEvent& event ) void PANEL_COLOR_SETTINGS::OnLeftDownTheme( wxMouseEvent& event )
{ {
// Lazy rebuild of theme menu to catch any colour theme changes made in other panels // Lazy rebuild of theme menu to catch any colour theme changes made in other panels
wxString sel = m_cbTheme->GetStringSelection(); createThemeList( m_currentSettings->GetFilename() );
createThemeList( sel );
event.Skip(); event.Skip();
} }

View File

@ -64,6 +64,10 @@ protected:
void updateSwatches(); void updateSwatches();
/**
* Builds the theme listbox and sets the selection to the current theme
* @param aCurrent is the filename of the current color theme (no extension)
*/
void createThemeList( const wxString& aCurrent ); void createThemeList( const wxString& aCurrent );
void createSwatch( int aLayer, const wxString& aName ); void createSwatch( int aLayer, const wxString& aName );