setDocumentEdited
Specifies whether the window’s document has been edited, and the icon in title bar will become gray when set to true.
Specifies whether the window’s document has been edited, and the icon in title bar will become gray when set to true.