Open schoettl opened 8 months ago
Unfortunately, this is not really fixable in MuseScore 4, since this whole "score state" concept was an implementation detail of MuseScore 3 (and as such, should never have been exposed so directly in the plugin API anyway), and in MuseScore 4 the implementation is different so no longer compatible with the plugin API. So someone will have to write an adapter between MuseScore 4's implementation and the plugin API. If someone has time and would like to give it a try, feel free to do so.
Just as a note: I worked around the missing onScoreStateChanged via this commit. Maybe someone finds this helpful.
Issue type
Other type of issue
Bug description
The event
onScoreStateChanged
in plugins is not called anymore in MS4. It used to work in MS3.6.Maybe the reason is that
scoreStateChanged
is not called anymore from MuseScore?My plugin relies on this because it needs to be informed when the note selection changes (
state.selectionChanged
).Steps to reproduce
Try this plugin: test.qml
It now should print warnings to stdout when you change note selection.
But it doesn't.
Screenshots/Screen recordings
No response
MuseScore Version
4.1.0 - 4.1.2
Regression
Yes, this used to work in MuseScore 3.x and now is broken
Operating system
Linux/NixOS
Additional context
Revision: OS: NixOS 23.05 (Stoat), Arch.: x86_64, MuseScore version (64-bit): 4.0.2-, revision: github-musescore-musescore-