diff --git a/plugins/SliceInfoPlugin/SliceInfo.py b/plugins/SliceInfoPlugin/SliceInfo.py index 3962d69e3e..abbb1ac43b 100644 --- a/plugins/SliceInfoPlugin/SliceInfo.py +++ b/plugins/SliceInfoPlugin/SliceInfo.py @@ -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 diff --git a/resources/qml/GeneralPage.qml b/resources/qml/GeneralPage.qml index 9f7203702f..f8f9ceb6a7 100644 --- a/resources/qml/GeneralPage.qml +++ b/resources/qml/GeneralPage.qml @@ -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 } } }