on xenial help sign in
save the report crashes option
commitab662ce654b0a4addbf658626f7b434c6e27a0fe authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 16 Sep 2015, 17:39 (11 years ago) parent892c1da
1 file changed+10−1
qml/Wizard/Pages/75-report-check.qml+10−1
qml/Wizard/Pages/75-report-check.qml+10−1
@@ -17,6 +17,7 @@
1717import QtQuick 2.3
1818import Ubuntu.Components 1.2
1919import Ubuntu.Web 0.2
20+import Ubuntu.SystemSettings.Diagnostics 1.0
2021import ".." as LocalComponents
2122
2223LocalComponents.Page {
@@ -36,6 +37,11 @@ LocalComponents.Page {
3637 }
3738 }
3839
40+ UbuntuDiagnostics {
41+ id: diagnostics
42+ objectName: "diagnostics"
43+ }
44+
3945 Column {
4046 id: column
4147 anchors {
@@ -75,7 +81,10 @@ LocalComponents.Page {
7581 id: forwardButton
7682 LocalComponents.StackButton {
7783 text: i18n.tr("Next")
78− onClicked: pageStack.next(); // TODO save that info somewhere
84+ onClicked: {
85+ diagnostics.setReportCrashes(reportCheck.checked);
86+ pageStack.next();
87+ }
7988 }
8089 }
8190}