newElement has bad refresh behaviour
Version 2.0.2 Rev f51dc11
Select a measure, then run the plugin. There should be two strings displayed as STAFF_TEXT.
The first string "one" is created in the OnRun event handler. It displays immediately.
The second string "onemore" is created after you click the OK button. It doesn't display until you make a significant change to the score, such as saving it.
If you then undo (Ctrl-Z), "one" is deleted, but "onemore" appears and does not get deleted.
I posted this in the Plugin forum (https://musescore.org/en/node/83306), but no-one replied so I'm assuming it's a bug.