02-20-2024, 06:16 PM
I'm a little confused - in order to delete a piece, there is already a deletion confirmation dialog that also lets you pick whether to delete the underlying file. Is that not sufficient? If you delete anything else like a setlist, there is also a confirmation dialog that is displayed for that. Are you saying you want two levels of confirmation for deleting anything? Or am not understanding?
As far as undo/redo, I've thought about this a bit and it's going to be quite complex to implement. In order to handle this without having to make massive changes, I would basically have to create a snapshot of the database file before every change in addition to a copy of any impacted files. This will make it possible to undo or redo changes without having to worry about reversing individual database queries. This would mean lots of data would be constantly stored under the application cache folder though. With larger databases and files, this could cause some disk I/O slowdown, especially on older devices. So I'd probably have to make it something users could enable/disable.
Mike
As far as undo/redo, I've thought about this a bit and it's going to be quite complex to implement. In order to handle this without having to make massive changes, I would basically have to create a snapshot of the database file before every change in addition to a copy of any impacted files. This will make it possible to undo or redo changes without having to worry about reversing individual database queries. This would mean lots of data would be constantly stored under the application cache folder though. With larger databases and files, this could cause some disk I/O slowdown, especially on older devices. So I'd probably have to make it something users could enable/disable.
Mike