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:
parent
a20bd59e3f
commit
af1e8ed763
common/project
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user