boltex / leojs

Leo Literate Editor with Outline in Typescript
https://boltex.github.io/leojs/
MIT License
33 stars 2 forks source link

'Checking for changes' and 'saving the Leo document' processes should be mutually exclusive. #149

Closed boltex closed 4 months ago

boltex commented 4 months ago

On some rare occasions, the two processes (saving and checking for changes) overlap. Because they contain async sub-steps, this can cause the C:\myFile.leo has changed outside Leo. Reload this outline? dialog to appear.

To fix: Have both those processes setup a promise to be waited for, before doing any of the two.