Implementing Undo for this operation could prove tricky, but without it perhaps the user should be warned that there is no undo after using it.
Probably doesn't matter what needs to be undone, but just in case:
Steps to reproduce:
- Open a session with a number of MIDI tracks
- Delete some MIDI tracks (CTRL-D)
- Use CTRL-Z to undo them
- Now delete them again
- Select File/Merge/Merge MusicXML File(s) to bring in multiple MIDI tracks from an XML file
- Use CTRL-Z and nothing happens
- As far as I can tell, you can't get back the deleted tracks
I believe all previous changes are forgotten.
Yes - on merge all command history is cleared.
Strangely enough there is a lot of undo/redo logic in
MergeFileCommandso undo should work.Maybe the clearing of the history is "accidental" ?
Anyone know ?
It seems this is also true for merge of midi and RG2 files.
I made a straightforward change to respect the
clearHistoryflag and everything seems to work OK.See codeberg merge request.
Last edit: Ted Felix 5 hours ago
Philip's fix merged as [3e9794]. Please test latest git.
Related
Commit: [3e9794]