Krita save detect?

I posted 3 alternatives you can use in this thread:

As for your question, it should be possible. Though you gotta be more precise on which save? Regular save/save as? autosave? And do you need it to stop before the save?

  1. There is imageSaved(filename: str) [signal] inside Notifier.

  2. You can technically hook onto actions such as Krita.instance().action('file_save').triggered.connect()

But if you want it to stop your code before the save, that may be more complicated. You can try a directconnection and see if that works, if not, you might need to do an eventfilter.

1 Like