mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -06:00
Fixed slice settings sender
This commit is contained in:
parent
0b6a0f7bd1
commit
97f80914c5
2 changed files with 39 additions and 3 deletions
|
@ -87,9 +87,12 @@ class SliceInfo(Extension):
|
||||||
"machine": platform.machine(),
|
"machine": platform.machine(),
|
||||||
"platform": platform.platform(),
|
"platform": platform.platform(),
|
||||||
"machine_settings": json.dumps(machine_settings),
|
"machine_settings": json.dumps(machine_settings),
|
||||||
"version": "15.10",#Application.getInstance().getVersion(),
|
"version": Application.getInstance().getVersion(),
|
||||||
"printtime": print_information.currentPrintTime,
|
"modelhash": "None",
|
||||||
"filament": material_used
|
"printtime": str(print_information.currentPrintTime),
|
||||||
|
"filament": material_used,
|
||||||
|
"language": Preferences.getInstance().getValue("general/language"),
|
||||||
|
"materials_profiles ": {}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Convert data to bytes
|
# Convert data to bytes
|
||||||
|
|
|
@ -125,6 +125,39 @@ UM.PreferencesPage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CheckBox
|
||||||
|
{
|
||||||
|
id: sendDataCheckbox
|
||||||
|
checked: UM.Preferences.getValue("info/send_slice_info")
|
||||||
|
onCheckedChanged: UM.Preferences.setValue("info/send_slice_info", checked)
|
||||||
|
}
|
||||||
|
Button
|
||||||
|
{
|
||||||
|
id: pushFreeText //is a button so the user doesn't have te click inconvenientley precise to enable or disable the checkbox
|
||||||
|
|
||||||
|
//: Display Overhang preference checkbox
|
||||||
|
text: qsTr("Send (anonymous) slice info");
|
||||||
|
onClicked: sendDataCheckbox.checked = !sendDataCheckbox.checked
|
||||||
|
|
||||||
|
//: Display Overhang preference tooltip
|
||||||
|
tooltip: "Should anonymous data about your slices be sent to Ultimaker. No models or IP's are sent / stored."
|
||||||
|
|
||||||
|
style: ButtonStyle
|
||||||
|
{
|
||||||
|
background: Rectangle
|
||||||
|
{
|
||||||
|
border.width: 0
|
||||||
|
color: "transparent"
|
||||||
|
}
|
||||||
|
label: Text
|
||||||
|
{
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
horizontalAlignment: Text.AlignLeft
|
||||||
|
text: control.text
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Item { Layout.fillHeight: true; Layout.columnSpan: 2 }
|
Item { Layout.fillHeight: true; Layout.columnSpan: 2 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue