File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 property var messageStack
1818 property var stagesListContainer
1919
20+ property bool is40
21+ property bool isLE44
22+ property bool isLE46
23+
2024 Component .onCompleted :
2125 {
26+ is40 = (CuraSDKVersion == " 6.0.0" )
27+ isLE44 = (CuraSDKVersion <= " 7.0.0" )
28+ isLE46 = (CuraSDKVersion <= " 7.2.0" ) && UM .Application .version != " master"
29+
2230 // adjust message stack position for sidebar
2331 messageStack = base .contentItem .children [0 ].children [3 ].children [8 ]
2432 messageStack .anchors .leftMargin = Math .floor ((base .width - printSetupSelector .width ) / 2 )
5361
5462 Component .onCompleted : {
5563 machineSelection .children [1 ].visible = false // remove shadow
56- var machineSelectionHeader = machineSelection .children [0 ].children [3 ].children [0 ]
64+ if (isLE46) {
65+ var machineSelectionHeader = machineSelection .children [0 ].children [3 ].children [0 ]
66+ } else {
67+ var machineSelectionHeader = machineSelection .children [0 ].children [3 ].children [1 ]
68+ }
5769 // adjust header margins, because the height is smaller than designed
5870 machineSelectionHeader .anchors .topMargin = 0
5971 machineSelectionHeader .anchors .bottomMargin = 0
You can’t perform that action at this time.
0 commit comments