setDocumentEdited

open fun setDocumentEdited(edited: Boolean)(source)

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