Skip to content

Commit

Permalink
Update UM/Qt/qml/UM/MenuItem.qml
Browse files Browse the repository at this point in the history
fix review comment

Co-authored-by: Casper Lamboo <[email protected]>
  • Loading branch information
saumyaj3 and casperlamboo authored Oct 3, 2023
1 parent fbcba5c commit 1f67452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UM/Qt/qml/UM/MenuItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MenuItem
enabled: root.action == null && root.enabled
onActivated: root.triggered()
context: Qt.ApplicationShortcut
sequences: [root.action != null ? root.action.shortcut: null]
sequences: root.action !== null ? [root.action] : []
}

// Workaround for menu items in controls not supporting mnemonic shortcuts in all cases.
Expand Down

0 comments on commit 1f67452

Please sign in to comment.