For my first commit in Blender, I want to fix this annoying issue for the "Report Message" in the status bar.
This issue appears in two ways :
- For the first time you save a .blend file, there is no feedback in order to know that the .blend file has been correctly saved.
- If the .blend file cannot be saved because of a non-listed error on Blender (such as the "No space left on device", error number 28, error code ENOSPC) ; in other word, if the write_file_handle function returns true, the status bar feedback is incorrect ("Saved "X.blend" insteed of the error description) because the "Saved "X.blend" message overwrite the previous error message :
So, if we move the mouve in the same time, the error popup doesn't appear and the user is misled by this wrong message in the status bar.
Then, we can close Blender with no unsaved .blend alert message.
Futhermore, if an unknow error appears such as "No space left on device", the tempfile (.blend@) isn't deleted. My patch doesn't fix this issue.
