From 318076430970773b8cd0f08b42d8ece844947315 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 8 Dec 2021 09:28:37 -0800 Subject: [PATCH] Don't remove converted files in local settings When migrating local settings, we don't want to remove files that we converted from as these settings will be created on demand and don't represent the totality of user settings Fixes https://gitlab.com/kicad/code/kicad/issues/9905 --- common/project/project_local_settings.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/project/project_local_settings.cpp b/common/project/project_local_settings.cpp index 76ad63f454..d15635d325 100644 --- a/common/project/project_local_settings.cpp +++ b/common/project/project_local_settings.cpp @@ -44,6 +44,9 @@ PROJECT_LOCAL_SETTINGS::PROJECT_LOCAL_SETTINGS( PROJECT* aProject, const wxStrin m_SelectionFilter(), m_project( aProject ) { + // Keep old files around + m_deleteLegacyAfterMigration = false; + m_params.emplace_back( new PARAM_LAMBDA( "board.visible_layers", [&]() -> std::string {