Possibility for plugin to delete elements
I'm working on a plugin that adds tablature to accordions. The plugin can add the text under each notes, but if I change some notes, I can't run the plugin again to update the text because it can't delete/replace the existing ones.
In libmscore/segment.h, we could expose the function removeAnnotation(Element* e)
This way, we could do: cursor.remove(element)
I tried It and it works, but the actual function doesn't support Undo, which brings another problem.