Open cbjeukendrup opened 1 year ago
Can you please suggest the file, which I should see.
@Tejkh1 For example, in the case of the Align property, this is the source of the problem: https://github.com/musescore/MuseScore/blob/43daf47bfde6b00ca598154114f75191220a6dd0/src/inspector/view/qml/MuseScore/Inspector/text/TextInspectorView.qml#L171-L176
"Reset to default" is called for both property items individually, which results in two separate "undoable actions" in the C++ code which is called eventually as a result, namely https://github.com/musescore/MuseScore/blob/43daf47bfde6b00ca598154114f75191220a6dd0/src/inspector/models/abstractinspectormodel.cpp#L271-L296
because for each call individually, the code is surrounded by beginCommand()
/endCommand()
.
So, it is quite easy to see what's the problem, but seeing a proper solution may be a bit more challenging!
To Reproduce Steps to reproduce the behavior:
Same story for the "align" property of text.
Expected behavior Since it takes one action to reset both values, it should take one press of the "undo" button to undo that.
Screenshots If applicable, add screenshots to help explain your problem.
https://user-images.githubusercontent.com/48658420/211215506-20596709-b9c2-4721-a56f-8da3d8f1ca73.mov