Dialog Type Plugin: How to make a score dirty
How do I set the 'dirty' flag for a score after making duration changes via a dialog plugin? At present the close button closes the score without prompting to save it first.
How do I set the 'dirty' flag for a score after making duration changes via a dialog plugin? At present the close button closes the score without prompting to save it first.
Do you still have an unanswered question? Please log in first to post your question.
Comments
I think that startCmd() / endCmd() wrapping may be needed. The API documentation only mentions these for Dock type plugins, as opposed to Dialog type, but this post suggests that there may be a more general applicability:
https://musescore.org/en/node/325393
I encountered the opposite problem
See: https://musescore.org/en/node/336449
It seems transposing up & down would certainly make the score dirty.
I attach the (convoluted) code
In reply to I encountered the opposite… by elsewhere
Very odd. Transpose via the UI certainly does dirty the score.
StartCmd / endCmd fixed mine so it was really just a case of incomplete API documentation.
In reply to Very odd. StartCmd / endCmd… by yonah_ag
startCmd / endCmd might have been optional in Mu3, but are mandatory in Mu4, else no modification of the score takes place at all.
In reply to startCmd / endCmd might have… by Jojo-Schmitz
I'm still using Mu3 but it required these Cmds for the score to be made dirty.
In reply to I'm still using Mu3 but it… by yonah_ag
Which makes sense