1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Add disabling of anonymous telemetry via settings

This commit is contained in:
Elias 2019-12-05 12:44:24 +01:00
parent e0b1a6c529
commit 6dfb129f10

View File

@ -20,8 +20,6 @@ Item {
contentHeight: columnWrapper.childrenRect.height contentHeight: columnWrapper.childrenRect.height
contentWidth: 800 contentWidth: 800
flickableDirection: Flickable.VerticalFlick flickableDirection: Flickable.VerticalFlick
maximumFlickVelocity: 5000
flickDeceleration: 5000
anchors { anchors {
top: parent.top top: parent.top
@ -112,14 +110,13 @@ Item {
SettingsHorizontalSeperator {} SettingsHorizontalSeperator {}
SettingBool { SettingBool {
height: 70 height: 70
available: false
headline: qsTr("Send anonymous crash reports and statistics") headline: qsTr("Send anonymous crash reports and statistics")
description: qsTr("Help us make ScreenPlay faster and more stable. All collected data is purely anonymous and only used for development purposes!") description: qsTr("Help us make ScreenPlay faster and more stable. All collected data is purely anonymous and only used for development purposes!")
isChecked: ScreenPlay.settings.sendStatistics isChecked: ScreenPlay.settings.anonymousTelemetry
onCheckboxChanged: { onCheckboxChanged: {
ScreenPlay.settings.setSendStatistics(checked) ScreenPlay.settings.setAnonymousTelemetry(checked)
ScreenPlay.settings.writeSingleSettingConfig( ScreenPlay.settings.writeSingleSettingConfig(
"sendStatistics", checked) "anonymousTelemetry", checked)
} }
} }
SettingsHorizontalSeperator {} SettingsHorizontalSeperator {}