Skip to content

Conversation

@cbjeukendrup
Copy link
Member

Root cause: the required property model was not properly set in the instantiation of NoteExpandableBlank etc.. Apparently, in the case of Loader, properties of the Loader are not automatically assigned to required properties of the source component; they are only passed as context properties, which we can't use with ComponentBehaviour: Bound.
Solution: pass the property directly where the components are declared. This does require moving the component declarations into the Loader, because only there the model in question is available. That in turn required a slight refactor of fullModel and getVisibleModel.

This is combined with a refactor that eliminates PlaybackGeneralSettings, because it is the only child of PlaybackSettings, so everything can just as well be directly in PlaybackSettings.

And a tiny runtime warning fix in NotationMultiElementView.

For QA: just need to check that the playback popup in the properties panel appears correctly for notes, arpeggios, fermatas, breaths, glissandos and gradual tempo changes. (for other elements it should be disabled)

Root cause: the required property `model` was not properly set in the instantiation of `NoteExpandableBlank` etc.. Apparently, in the case of Loader, properties of the Loader are not automatically assigned to required properties of the source component; they are only passed as context properties, which we can't use with `ComponentBehaviour: Bound`.
Solution: pass the property directly where the components are declared. This does require moving the component declarations into the Loader, because only there the model in question is available. That in turn required a slight refactor of `fullModel` and `getVisibleModel`.

This is combined with a refactor that eliminates PlaybackGeneralSettings, because it is the only child of PlaybackSettings, so everything can just as well be directly in PlaybackSettings.

And a tiny runtime warning fix in `NotationMultiElementView`.
@zacjansheski
Copy link
Contributor

Tested on MacOS 15, Windows 11, Ubuntu 22.04.3. Approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants