From 9e46bcff8328a94f195dcf610a550238cfd34f45 Mon Sep 17 00:00:00 2001 From: Calum Matheson Date: Tue, 3 Dec 2024 12:15:26 +0000 Subject: [PATCH] Percussion panel - fix navigation to footers in empty pads --- .../MuseScore/NotationScene/internal/PercussionPanelPad.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/notation/qml/MuseScore/NotationScene/internal/PercussionPanelPad.qml b/src/notation/qml/MuseScore/NotationScene/internal/PercussionPanelPad.qml index ece9ee1950593..954762cb3f24b 100644 --- a/src/notation/qml/MuseScore/NotationScene/internal/PercussionPanelPad.qml +++ b/src/notation/qml/MuseScore/NotationScene/internal/PercussionPanelPad.qml @@ -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 @@ -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") : ""