diff --git a/UM/Qt/qml/UM/Menu.qml b/UM/Qt/qml/UM/Menu.qml index 0148981a8..30538cbcf 100644 --- a/UM/Qt/qml/UM/Menu.qml +++ b/UM/Qt/qml/UM/Menu.qml @@ -17,7 +17,7 @@ Menu { root.parent.visible = shouldBeVisible root.parent.height = shouldBeVisible ? UM.Theme.getSize("menu").height : 0 - root.width = shouldBeVisible ? setWidth() : 0 + root.width = shouldBeVisible ? Qt.binding(setWidth) : 0 } }