createThemeList takes a filename, not a name
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7075
This commit is contained in:
parent
cc8413c841
commit
e0fdfbe1d5
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue