Open sammik opened 1 year ago
Additionally, performing only one undo causes the visibility buttons in the Instruments panel to stop working, leaving the instrument hidden regardless of what the user does unless another undo is performed. Upon saving the score and restarting Musescore, it is impossible to show the instrument on the part again without deleting the part and re-adding the desired instruments. Reproducible as of Musescore 4.0.1 for Windows 11.
The number of undo steps created appears to be the number of staves the instrument has + 1. For example, if I have an instrument with 6 staves, I have to press undo 7 times (one for each stave and one for the instrument itself).
Describe the bug If hide instrument in Instruments panel, it creates extra empty undo(s). User needs to press undo 2 or 3 times to show instrument back.
To Reproduce Steps to reproduce the behavior:
or
Expected behavior One undo is enough.
Screenshots
https://user-images.githubusercontent.com/1646034/195701124-ef9ae4a3-098c-4367-af93-b5da3e03f6d2.mp4
Platform information
Additional context Extra undo(s) are needed only for showing instrument (revert hiding). Hiding (revert showing) works as expected.