on xenial help sign in
save the report crashes option
ab662ceLukáš Tinkl
qml/Wizard/Pages/75-report-check.qml+10−1
@@ -17,6 +17,7 @@
17import QtQuick 2.3
17import QtQuick 2.3
18import Ubuntu.Components 1.2
18import Ubuntu.Components 1.2
19import Ubuntu.Web 0.2
19import Ubuntu.Web 0.2
20+import Ubuntu.SystemSettings.Diagnostics 1.0
20import ".." as LocalComponents
21import ".." as LocalComponents
21
22
22LocalComponents.Page {
23LocalComponents.Page {
@@ -36,6 +37,11 @@ LocalComponents.Page {
36 }
37 }
37 }
38 }
38
39
40+ UbuntuDiagnostics {
41+ id: diagnostics
42+ objectName: "diagnostics"
43+ }
44+
39 Column {
45 Column {
40 id: column
46 id: column
41 anchors {
47 anchors {
@@ -75,7 +81,10 @@ LocalComponents.Page {
75 id: forwardButton
81 id: forwardButton
76 LocalComponents.StackButton {
82 LocalComponents.StackButton {
77 text: i18n.tr("Next")
83 text: i18n.tr("Next")
84+ onClicked: {
85+ diagnostics.setReportCrashes(reportCheck.checked);
78− onClicked: pageStack.next(); // TODO save that info somewhere
86+ pageStack.next();
87+ }
79 }
88 }
80 }
89 }
81}
90}