#14 Auto-saved draft is sometimes wiped out

已關閉
matt6 年之前建立 · 3 條評論

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 年之前
adrian 評論 5 年之前
協同者

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 評論 5 年之前
協同者

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 年之前
matt 評論 5 年之前
所有者

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.
登入 才能加入這對話。
未選擇里程碑
No Assignees
2 參與者
訊息
Due Date

0001-01-01 Overdue

Dependencies

This issue currently doesn't have any dependencies.

Loading…
尚未有任何內容