How to find if a user has unsaved changes in the current opening project

Hi guys
I’m looking for a method or filed in openAPI which tells me if user has any unsaved changes in the current opening project.
How can I realize that?
Thanks in advance

Hi Mamad,

The Open API allows you to check whether a project is currently modified. Try this:
ApplicationManager.instance().getProjectManager().getProject().isModified()

Best regards,
Jick Yeung

1 Like

Thank you @Jick

You’re welcome. Feel free to post again if you have any questions.

1 Like