diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index f4290af24b..ba42dd2aec 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -1362,7 +1362,3 @@ class CuraApplication(QtApplication): node = node.getParent() Selection.add(node) - - @pyqtSlot(result=str) - def getCuraVersion(self): - return CuraVersion diff --git a/resources/qml/SidebarHeader.qml b/resources/qml/SidebarHeader.qml index f99f6875ae..94e04c3317 100644 --- a/resources/qml/SidebarHeader.qml +++ b/resources/qml/SidebarHeader.qml @@ -213,6 +213,7 @@ Column width: height anchors.margins: UM.Theme.getSize("default_margin").width anchors.verticalCenter: parent.verticalCenter + visible: extrudersList.visible text: "i" style: UM.Theme.styles.info_button @@ -220,7 +221,7 @@ Column onClicked: { // open the material URL with web browser - var version = CuraApplication.getCuraVersion(); + var version = UM.Application.version; var machineName = Cura.MachineManager.activeMachineDefinitionId; var url = "https://ultimaker.com/materialcompatibility/" + version + "/" + machineName; @@ -243,6 +244,13 @@ Column } } + Text // to take the space of the material info button when the active machine doesn't have multiple extruders + { + height: parent.height * 0.70 + width: height + visible: !extrudersList.visible + } + Text { width: parent.width * 0.10 - materialInfoButton.width - UM.Theme.getSize("default_margin").width