// ProjectSaveMode is delivered as the first argument of the // IModel.onProjectSaving signal, which fires after the project has been // saved. Use the mode to tell a user-triggered save apart from an // automatic background save. // Default — save initiated by the user (File > Save / Cmd+S, or // Save As to a new path). Safe place for side effects like // stamping a version or refreshing UI tied to the on-disk path. // Autosave — automatic periodic save. Keep the handler cheap. constmodel = this.pluginSystem.findInterface(Editor.Model.IModel) asEditor.Model.IModel;
Enum controlling how and when a project is saved.
Example