mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 03:59:04 +08:00
CURA-3452 Save spool cost and weight upon change
This commit is contained in:
parent
039c1b92de
commit
c9d223acd4
@ -155,8 +155,10 @@ TabView
|
|||||||
decimals: 2
|
decimals: 2
|
||||||
maximumValue: 1000
|
maximumValue: 1000
|
||||||
|
|
||||||
onEditingFinished: base.setMaterialPreferenceValue(properties.guid, "spool_cost", parseFloat(value))
|
onValueChanged: {
|
||||||
onValueChanged: updateCostPerMeter()
|
base.setMaterialPreferenceValue(properties.guid, "spool_cost", parseFloat(value))
|
||||||
|
updateCostPerMeter()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Label { width: base.firstColumnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Filament weight") }
|
Label { width: base.firstColumnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Filament weight") }
|
||||||
@ -170,8 +172,10 @@ TabView
|
|||||||
decimals: 0
|
decimals: 0
|
||||||
maximumValue: 10000
|
maximumValue: 10000
|
||||||
|
|
||||||
onEditingFinished: base.setMaterialPreferenceValue(properties.guid, "spool_weight", parseFloat(value))
|
onValueChanged: {
|
||||||
onValueChanged: updateCostPerMeter()
|
base.setMaterialPreferenceValue(properties.guid, "spool_weight", parseFloat(value))
|
||||||
|
updateCostPerMeter()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Label { width: base.firstColumnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Filament length") }
|
Label { width: base.firstColumnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Filament length") }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user