UserText and "Save before closing" dialog

Hi,
I realize that a UserText creation/modification in a rhino file doesn’t trigger the “Save before closing” dialog when closing the file.
Would it be possible to handle these functions and display the warning window before closing the file ?
I just lost data twice in a day because of that … :wink:
Thanks

Hi @BaptisteC,

does it prompt for save if you set the document to modified before closing ?

import rhinoscriptsyntax as rs
rs.DocumentModified(True)

c.

This issue has been fixed in the Rhino WIP…

OK, I just have to wait though.
Thanks