Scinotes autosave issues
Bug Description
Autosave feature does not work very well because backup files are not systematically deleted when Scilab quits. Backup files are deleted if and only if a first autosave timer event has occured. It means that if you create a new file in Scinotes, save it then close the window before one minute has elapsed, the backup file won't be deleted when Scilab exits.
Moreover, when a file is saved in a different folder than the current directory, the backup file is always created in the current directory.
And last: when editing a new file from scratch, there is no backup creation until the current file is saved.
Note: this occurs on macOS and Windows (not tested on Linux)
Analysis
The SciNotesAutoSave.actionPerformed
is called only after the first timer event, although it should be called just after backup file creation.