Skip migration if target key is missing
Fixes https://gitlab.com/kicad/code/kicad/-/issues/5536
This commit is contained in:
parent
d60b5a0618
commit
d6be0be177
|
@ -422,13 +422,16 @@ bool FOOTPRINT_EDITOR_SETTINGS::migrateSchema0to1()
|
|||
|
||||
if( !m_manager )
|
||||
{
|
||||
wxLogTrace(
|
||||
traceSettings, "Error: FOOTPRINT_EDITOR_SETTINGS migration cannot run unmanaged!" );
|
||||
wxLogTrace( traceSettings,
|
||||
"Error: FOOTPRINT_EDITOR_SETTINGS migration cannot run unmanaged!" );
|
||||
return false;
|
||||
}
|
||||
|
||||
nlohmann::json::json_pointer theme_ptr( "/appearance/color_theme" );
|
||||
|
||||
if( !count( theme_ptr ) )
|
||||
return true;
|
||||
|
||||
wxString selected = at( theme_ptr ).get<wxString>();
|
||||
wxString search = selected + wxT( "_footprints" );
|
||||
|
||||
|
|
Loading…
Reference in New Issue