I want to create a restart addon: please help me

Then you will have to take care of it yourself via:

for doc in Krita.instance().documents():
    doc.saveAs("FILE NAME")

You can figure out what is saved or not via:

for doc in Krita.instance().documents():
    if doc.fileName():
        print (doc.fileName()," IS A SAVED FILE")
    else:
        print ( "THIS DOC IS UNSAVED!" )

As for getting all the properties of everything, try this:

or git source.

1 Like