Skip to content

Commit

Permalink
Merge branch 'main' into vpn-6854-fix-extra-data-throughput-data
Browse files Browse the repository at this point in the history
  • Loading branch information
mcleinman committed Feb 18, 2025
2 parents c7c5387 + ad51323 commit 2d75a96
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/ui/screens/getHelp/developerMenu/ViewTelemetryDebugging.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,25 @@ MZViewBase {
spacing: MZTheme.theme.windowMargin
Layout.fillWidth: true

MZInformationCard {
cardType: MZInformationCard.CardType.Info
height: textBlocks.height + MZTheme.theme.windowMargin * 2
width: Math.min(window.width - MZTheme.theme.windowMargin * 2, MZTheme.theme.navBarMaxWidth)
Layout.leftMargin: MZTheme.theme.windowMargin
Layout.rightMargin: MZTheme.theme.windowMargin

_infoContent: ColumnLayout {
id: textBlocks

spacing: 0
MZTextBlock {
Layout.fillWidth: true
text: "Activating any checkbox on this screen will set the user-facing `share technical data` setting to `true`, as no telemetry will flow if that is `false`."
verticalAlignment: Text.AlignVCenter
}
}
}

MZCheckBoxRow {
id: checkBoxRowGleanLogPings

Expand All @@ -29,6 +48,9 @@ MZViewBase {
showDivider: false
onClicked: {
VPN.gleanSetLogPings(!MZSettings.gleanLogPings)
if (MZSettings.gleanLogPings) {
MZSettings.gleanEnabled = true
}
}
}
MZCheckBoxRow {
Expand All @@ -40,6 +62,9 @@ MZViewBase {
showDivider: false
onClicked: {
MZSettings.extensionTelemetryEnabled = !MZSettings.extensionTelemetryEnabled
if (MZSettings.extensionTelemetryEnabled) {
MZSettings.gleanEnabled = true
}
}
}

Expand All @@ -54,6 +79,9 @@ MZViewBase {
showDivider: false
onClicked: {
MZSettings.gleanDebugTagActive = !MZSettings.gleanDebugTagActive;
if (MZSettings.gleanDebugTagActive) {
MZSettings.gleanEnabled = true
}
}
}

Expand Down Expand Up @@ -94,6 +122,9 @@ MZViewBase {
showDivider: false
onClicked: {
MZSettings.shortTimerSessionPing = !MZSettings.shortTimerSessionPing
if (MZSettings.shortTimerSessionPing) {
MZSettings.gleanEnabled = true
}
}
}

Expand Down

0 comments on commit 2d75a96

Please sign in to comment.