-
Notifications
You must be signed in to change notification settings - Fork 10
Add Drag/Drop for opening .mmd files #332
Copy link
Copy link
Labels
backendCovers changes, bug fixes, and improvements to the backend implementation.Covers changes, bug fixes, and improvements to the backend implementation.enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Milestone
Metadata
Metadata
Assignees
Labels
backendCovers changes, bug fixes, and improvements to the backend implementation.Covers changes, bug fixes, and improvements to the backend implementation.enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
We should allow for drag/drop of
.mmdfiles to open them.Important
Please create your branch from the latest
developbranch, notmainWhen ready, create your Pull Request against
developbranch, notmainWhen a
.mmdfile is dragged over the TextEditor, the.mmdfile should:IsDirty = false, then the.mmdfile should be openedIsDirty = true, the user should be prompted if they want to save the current document before proceeding. There is already functionality that does this so you can just re-use what is there:a. An example of where this is being used is in
MainWindowViewModel.PromptSaveIfDirtyAsync- see PromptSaveIfDirtyAsyncb. the
ConfirmationDialogshould contain 3 buttons:Yes,No, andCancelc. the
ConfirmationDialogprompt text should be similar to, if not the same as, what is used inMainWindowViewModel.PromptSaveIfDirtyAsync- see PromptSaveIfDirtyAsyncd. if the user clicks
Yes, the open file should be saved first, then closed, then open the file path of the dragged filee. if the user clicks
No, the open file should not be saved but instead closed, then open the file path of the dragged filef. if the user clicks
Cancel, theConfirmationDialogshould be closed and no action takes place.