homebrewery
homebrewery copied to clipboard
[EDITOR] Unsaved Changes on Exit
Your idea:
Reproduction Steps:
- Open any document.
- Make a change. Note that the "AUTOSAVE" icon changes to "SAVE NOW"
- Revert that change. Note that the "SAVE NOW" reverts to "AUTOSAVE"
- Attempt to close the tab.
Despite the fact that there are no changes to be saved, the "Your changes may be lost" warning appears.
Solution: update the function called at editor close to use the same logic as the SAVE button.