The goal of this PR is to ensure that the actual project file is only overwritten, when the saving process was successful and not interrupted
Strategy to achieve this:
When saving the mastodon project file, it is first saved to projectname.mastodon_pending
When saving to this file was successful, projectname.mastodon gets overwritten with projectname.mastodon_pending
Motivation for this:
In the past, it has been observed that *.mastodon files were corrupted and could not be read anymore
Typical saving times for a project range from ~0.2s to ~2s (depending on project size, attributes, etc.). Not very long, but long enough to kill mastodon during the saving process
Resolves #310
The goal of this PR is to ensure that the actual project file is only overwritten, when the saving process was successful and not interrupted
Motivation for this: