Actual behaviour
Starting one of the recent updates, when a note is modified externally, often but not always, instead of having it reloaded by the running application, the older version is re-saved, overwriting the externally modified note. Essentially, the modification is not detected, and the next auto-save stores the old version.
Steps to reproduce
Steps to reproduce the behavior:
- Have the application open on a note file.
- Edit that note file using another application. (In my case it was rclone syncing with a NextCloud instance, where the note was edited.)
- Notice that in some cases the modification is not detected, and instead of the new contents being loaded, the old contents are being saved after up to as many seconds as auto-save prescribes.
Relevant log output in the Log panel
...
[18:30:26] [debug] storeCurrentLayout
[18:33:50] [debug] storing note file: "aaa.md"
[18:33:50] [debug] stored note: Note: <id>429 <name>"aaa" <fileName>"aaa.md" <noteSubFolderId>4 <relativePath>"xxx" <hasDirtyData>false
[18:33:50] [debug] storeUpdatedNotesToDisk - 'count': 1
[18:33:50] [status] 💾 Stored 1 note(s) to disk
[18:33:50] [debug] storeUpdatedNotesToDisk - 'wasStripped'
...
The note was not edited in QOwnNotes, and the stored version overwrote a new version that was stored by rclone.
Actual behaviour
Starting one of the recent updates, when a note is modified externally, often but not always, instead of having it reloaded by the running application, the older version is re-saved, overwriting the externally modified note. Essentially, the modification is not detected, and the next auto-save stores the old version.
Steps to reproduce
Steps to reproduce the behavior:
Relevant log output in the Log panel