Fixed slice settings sender

This commit is contained in:
Jaime van Kessel 2015-08-26 15:09:53 +02:00
parent 0b6a0f7bd1
commit 97f80914c5
2 changed files with 39 additions and 3 deletions

View file

@ -87,9 +87,12 @@ class SliceInfo(Extension):
"machine": platform.machine(),
"platform": platform.platform(),
"machine_settings": json.dumps(machine_settings),
"version": "15.10",#Application.getInstance().getVersion(),
"printtime": print_information.currentPrintTime,
"filament": material_used
"version": Application.getInstance().getVersion(),
"modelhash": "None",
"printtime": str(print_information.currentPrintTime),
"filament": material_used,
"language": Preferences.getInstance().getValue("general/language"),
"materials_profiles ": {}
}
# Convert data to bytes

View file

@ -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 }
}
}