Laverna: Cancel saves the Changes

Created on 6 Jul 2016  ·  3Comments  ·  Source: Laverna/laverna

expected: Cancel discards changes, Save saves changes
only works for new note, editing an old note: Cancel saves changes

bug

Most helpful comment

I will try to solve this bug. The problem is the auto save feature. It automatically saves after a few seconds, even if I click cancel afterwards. I will try to solve this by auto save in a tmp note, which will be deleted when you click cancel, but not if the program accidentally crashes.

All 3 comments

Plus when clicking cancel on a new note the note still will be created.

I will try to solve this bug. The problem is the auto save feature. It automatically saves after a few seconds, even if I click cancel afterwards. I will try to solve this by auto save in a tmp note, which will be deleted when you click cancel, but not if the program accidentally crashes.

In addition, it would probably make sense to add a prompt to confirm cancellation when changes are detected.

Currently, thanks to auto save, if I am working on a note for a few hours, then accidentally hit Cancel, I don't lose anything.

If Cancel were to actually discard the changes, then that opens up an easy way to accidentally lose your work.

Ultimately I think the ideal solution would be the addition of Notes History (#125), and then it would make sense to eliminate the distinction between Save and Cancel.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Aaron-Zhao picture Aaron-Zhao  ·  5Comments

stonedreamforest picture stonedreamforest  ·  9Comments

fanrongqitiancai picture fanrongqitiancai  ·  8Comments

igorsantos07 picture igorsantos07  ·  7Comments

valvin1 picture valvin1  ·  3Comments