Skip to content

The app doesn't prompt you to save before loading a new transcript #109

@briandk

Description

@briandk

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

  1. Start the app fresh
  2. Type some text into the editor
  3. Drag an existing text file over the editor pane
  4. Drop the file
  5. 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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions