#14 Auto-saved draft is sometimes wiped out

Closed
opened 6 years ago by matt · 3 comments
matt commented 6 years ago

Occasionally I’ll leave the app after writing something, come back, and see a blank editor. For some reason, the draft.txt is getting automatically cleared out sometimes.

Occasionally I'll leave the app after writing something, come back, and see a blank editor. For some reason, the `draft.txt` is getting automatically cleared out sometimes.
matt added the
high priority
label 5 years ago
adrian commented 5 years ago
Collaborator

O.K., maybe this is something I can fix. It’ll be difficult to figure out the cause, but it appears to be a problem with the save routine rather than the read routine.

So while I can’t figure out why it wants to write nothing out to the file, maybe I can guard against that happening.

O.K., maybe this is something I can fix. It'll be difficult to figure out the cause, but it appears to be a problem with the save routine rather than the read routine. So while I can't figure out why it wants to write nothing out to the file, maybe I can guard against that happening.
adrian commented 5 years ago
Collaborator

And now I think I’ve fixed this. Hard to know for sure, but I gave the bug a long time to reoccur in my testing.

I don’t know what was causing it but it appears I can check if the bug’s about to happen and stop it from taking affect.

And now I think I've fixed this. Hard to know for sure, but I gave the bug a long time to reoccur in my testing. I don't know what was causing it but it appears I can check if the bug's about to happen and stop it from taking affect.
adrian closed this issue 5 years ago
matt commented 5 years ago
Owner

Excellent -- yeah, from my testing it seemed like the write was the problem (the draft file was blank on disk after closing the app). I’ll pull in the changes and test here too.

Excellent -- yeah, from my testing it seemed like the write was the problem (the draft file was blank on disk after closing the app). I'll pull in the changes and test here too.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

0001-01-01 Overdue

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.