# Gimp.Image.prototype.is_dirty

    function is_dirty(): Boolean {
        // Gjs wrapper for gimp_image_is_dirty()
    }

Checks if the image has unsaved changes.

This procedure checks the specified image's dirty count to see if it needs to be saved. Note that saving the image does not automatically set the dirty count to 0, you need to call Gimp.Image.prototype.clean_all after calling a save procedure to make the image clean.

Returns

  TRUE if the image has unsaved changes.