mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:19:13 +08:00
Merge branch '5.0' of github.com:Ultimaker/Cura
This commit is contained in:
commit
5c7423e007
@ -20,11 +20,18 @@ UM.Dialog
|
|||||||
|
|
||||||
property bool dontShowAgain: true
|
property bool dontShowAgain: true
|
||||||
|
|
||||||
onClosing: UM.Preferences.setValue("cura/dialog_on_project_save", !dontShowAgainCheckbox.checked)
|
function storeDontShowAgain()
|
||||||
|
{
|
||||||
|
UM.Preferences.setValue("cura/dialog_on_project_save", !dontShowAgainCheckbox.checked)
|
||||||
|
UM.Preferences.setValue("asked_dialog_on_project_save", true)
|
||||||
|
}
|
||||||
|
|
||||||
|
onClosing: storeDontShowAgain()
|
||||||
|
onRejected: storeDontShowAgain()
|
||||||
|
onAccepted: storeDontShowAgain()
|
||||||
onVisibleChanged:
|
onVisibleChanged:
|
||||||
{
|
{
|
||||||
if(visible)
|
if(visible && UM.Preferences.getValue("cura/asked_dialog_on_project_save"))
|
||||||
{
|
{
|
||||||
dontShowAgain = !UM.Preferences.getValue("cura/dialog_on_project_save")
|
dontShowAgain = !UM.Preferences.getValue("cura/dialog_on_project_save")
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,7 @@ UM.TooltipArea
|
|||||||
|
|
||||||
property alias textField: textFieldWithUnit
|
property alias textField: textFieldWithUnit
|
||||||
property alias valueText: textFieldWithUnit.text
|
property alias valueText: textFieldWithUnit.text
|
||||||
|
property alias enabled: textFieldWithUnit.enabled
|
||||||
property alias editingFinishedFunction: textFieldWithUnit.editingFinishedFunction
|
property alias editingFinishedFunction: textFieldWithUnit.editingFinishedFunction
|
||||||
|
|
||||||
property string tooltipText: propertyProvider.properties.description ? propertyProvider.properties.description : ""
|
property string tooltipText: propertyProvider.properties.description ? propertyProvider.properties.description : ""
|
||||||
|
@ -601,8 +601,12 @@ Item
|
|||||||
maximum: 99999
|
maximum: 99999
|
||||||
unitText: model.unit
|
unitText: model.unit
|
||||||
decimals: model.unit == "mm" ? 2 : 0
|
decimals: model.unit == "mm" ? 2 : 0
|
||||||
|
enabled: base.editingEnabled
|
||||||
|
|
||||||
editingFinishedFunction: materialPropertyProvider.setPropertyValue("value", value)
|
editingFinishedFunction: function()
|
||||||
|
{
|
||||||
|
materialPropertyProvider.setPropertyValue("value", parseFloat(valueText.replace(",", ".")))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.ContainerPropertyProvider
|
UM.ContainerPropertyProvider
|
||||||
|
Loading…
x
Reference in New Issue
Block a user