Skip to content

Commit

Permalink
Percussion panel - fix navigation to footers in empty pads
Browse files Browse the repository at this point in the history
  • Loading branch information
mathesoncalum committed Dec 3, 2024
1 parent 3036e12 commit 9e46bcf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ DropArea {
name: root.objectName !== "" ? root.objectName : "PercussionPanelPad"

// Only navigate to empty slots when we're in edit mode
enabled: !prv.isEmptySlot || root.panelMode === PanelMode.EDIT_LAYOUT
enabled: Boolean(root.padModel) || root.panelMode === PanelMode.EDIT_LAYOUT

accessible.role: MUAccessible.Button
accessible.name: Boolean(root.padModel) && !prv.isEmptySlot ? root.padModel.instrumentName : qsTrc("notation", "Empty pad")
accessible.name: Boolean(root.padModel) ? root.padModel.instrumentName : qsTrc("notation", "Empty pad")

accessible.description: prv.accessibleDescription

Expand All @@ -112,7 +112,7 @@ DropArea {

name: root.objectName !== "" ? root.objectName : "PercussionPanelPadFooter"

enabled: !prv.isEmptySlot
enabled: Boolean(root.padModel)

accessible.role: MUAccessible.Button
accessible.name: Boolean(root.padModel) ? root.padModel.instrumentName + " " + qsTrc("notation", "footer") : ""
Expand Down

0 comments on commit 9e46bcf

Please sign in to comment.