Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature to determine if onPreSaveModel, onPostSaveModel on ModelObserver are called due to autosave #1005

Open
hanneseklund opened this issue Oct 8, 2024 · 1 comment

Comments

@hanneseklund
Copy link

Use case is to do things that are potentially time consuming or disruptive to modelling in onPreSaveModel/onPostSaveModel.
In these cases it is desirable to exclude events caused by autosave.

Possible implementation:
add a parameter to the event with the path actually being saved (can be compared to model.path)
and/or a parameter explicitly indicating the cause of the event (autosave, save, save a copy as, etc.)

@Fredosixx
Copy link

I support this request, especially to have the new name of the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants