musescore / musescore/MuseScore

"Replace Instrument" doesn’t update clef name in instruments panel

Open
#23,289 0 comments 0 reactions 1 assignee View on GitHub

@Eism is already working on this.

Since Jun 18, 2024.

P3 UI
Dominant language
C++
Stars
15.1k
Forks
3.3k
Avg merge
2d 2h
Merged PRs (30d)
91

Description

Issue type

UI bug (incorrect info or interface appearance)

Bug description

Replacing an instrument with an instrument that has a different clef does not update the name of the clef in the instruments panel.

Steps to reproduce
  1. Make a new score with just a viola (which has an alto clef).
  2. Go to the instruments panel and click the gear beside the instrument name.
  3. Choose "Replace instrument" and replace it with a violin (which has a treble clef).
  4. Click the disclosure triangle to reveal the staves. See the issue: the staff name still says "Alto clef".
  5. Hide and unhide the staff and notice that the staff name updates to "Treble clef".
Screenshots/Screen recordings

https://github.com/musescore/MuseScore/assets/163907533/4b2236df-83f9-4021-b81b-de62b123642c

MuseScore Version

4.3.2

Regression

No

Operating system

macOS 12.7.2

Additional context

Closing and reopening the score also updates the clef name.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.