diff --git a/UM/Qt/qml/UM/MenuItem.qml b/UM/Qt/qml/UM/MenuItem.qml index 7f5ea0c1c..12c804b67 100644 --- a/UM/Qt/qml/UM/MenuItem.qml +++ b/UM/Qt/qml/UM/MenuItem.qml @@ -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