7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-14 20:09:35 +00:00

Fix missing tweak from master project settings SaveToFile

This commit is contained in:
Jon Evans 2025-02-10 19:22:22 -05:00
parent a20bd59e3f
commit af1e8ed763
2 changed files with 8 additions and 2 deletions

View File

@ -589,11 +589,14 @@ bool PROJECT_FILE::SaveToFile( const wxString& aDirectory, bool aForce )
Set( "meta.filename", m_project->GetProjectName() + "." + FILEEXT::ProjectFileExtension );
// Even if parameters were not modified, we should resave after migration
bool force = aForce || m_wasMigrated;
// If we're actually going ahead and doing the save, the flag that keeps code from doing the save
// should be cleared at this point
m_wasMigrated = false;
return JSON_SETTINGS::SaveToFile( aDirectory, aForce );
return JSON_SETTINGS::SaveToFile( aDirectory, force );
}

View File

@ -361,11 +361,14 @@ bool PROJECT_LOCAL_SETTINGS::SaveToFile( const wxString& aDirectory, bool aForce
Set( "meta.filename", m_project->GetProjectName() + "." + FILEEXT::ProjectLocalSettingsFileExtension );
// Even if parameters were not modified, we should resave after migration
bool force = aForce || m_wasMigrated;
// If we're actually going ahead and doing the save, the flag that keeps code from doing the save
// should be cleared at this point
m_wasMigrated = false;
return JSON_SETTINGS::SaveToFile( aDirectory, aForce );
return JSON_SETTINGS::SaveToFile( aDirectory, force );
}