Expected Behavior
If you have unsaved content, then drag a text file over the editor and drop it, the app should prompt you to save your changes before loading the new file
Actual Behavior
The app loads the new file
Steps to reproduce
- Start the app fresh
- Type some text into the editor
- Drag an existing text file over the editor pane
- Drop the file
- Verify that the file loads without any prompting to save your existing changes
Proposed Solution
Add new events for "user wants to load a transcript"
Check whether the editor is dirty when the user wants to load a file:
If it is dirty, display a save dialog.
This proposed solution may require refactoring the existing "save file" code into its own module.