Skip to content

Commit

Permalink
Merge pull request #913 from Ultimaker/CURA-11102_qml_warnings
Browse files Browse the repository at this point in the history
[CURA-11102] qml warnings
  • Loading branch information
casperlamboo authored Oct 10, 2023
2 parents 75efad0 + 43707f5 commit 5ad182b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion UM/Qt/qml/UM/Menu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Menu
{
root.parent.visible = shouldBeVisible
root.parent.height = shouldBeVisible ? UM.Theme.getSize("menu").height : 0
root.width = shouldBeVisible ? Qt.binding(setWidth) : 0
root.width = shouldBeVisible ? setWidth() : 0
}
}

Expand Down
3 changes: 1 addition & 2 deletions UM/Qt/qml/UM/MenuItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ MenuItem
{
// Middle margin
id: middleSpacer
width: visible ? UM.Theme.getSize("default_margin").width : 0
visible: _shortcut.nativeText != "" || root.subMenu
width: (_shortcut.nativeText != "" || root.subMenu) ? UM.Theme.getSize("default_margin").width : 0
}

UM.Label
Expand Down

0 comments on commit 5ad182b

Please sign in to comment.