Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Org storage must not duplicate notes #7

Open
jbiason opened this issue Jun 9, 2021 · 0 comments
Open

Org storage must not duplicate notes #7

jbiason opened this issue Jun 9, 2021 · 0 comments

Comments

@jbiason
Copy link
Owner

jbiason commented Jun 9, 2021

If downfav crashes while saving Org notes, restarting the app would duplicate the entries in the org file.

To prevent that, we must start writing in a different file (using the current one, if it exists) and rename/move back to the proper place in the end, if everything went fine.

Attachments are not a problem, since they are stored in the filesystem and, thus, can be overridden without issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant