summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2025-02-05 15:13:10 +1000
committerZephyron <zephyron@citron-emu.org>2025-02-05 15:13:10 +1000
commitd4eca46bba66daba04c585cf76b7e0ae04693da7 (patch)
tree9bdcd815591588e9b87b48404537fda59598b678
parentdf1ae19742bf7ef1bd1ed3d5c51d5329c2cf16ea (diff)
frontend: Remove telemetry popup and default to disabled
Removes the telemetry opt-in popup dialog and defaults telemetry to disabled. The ShowTelemetryCallout function is simplified to just: - Set telemetry to disabled by default - Apply the setting - Mark the callout as shown to prevent future popups This change ensures user privacy by defaulting to no telemetry collection without requiring user interaction.
-rw-r--r--src/citron/main.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/citron/main.cpp b/src/citron/main.cpp
index 7fa8e7ebd..29fd143b2 100644
--- a/src/citron/main.cpp
+++ b/src/citron/main.cpp
@@ -1,4 +1,5 @@
// SPDX-FileCopyrightText: 2014 Citra Emulator Project
+// SPDX-FileCopyrightText: 2025 citron Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <cinttypes>
@@ -203,21 +204,13 @@ enum class CalloutFlag : uint32_t {
};
void GMainWindow::ShowTelemetryCallout() {
- if (UISettings::values.callout_flags.GetValue() &
- static_cast<uint32_t>(CalloutFlag::Telemetry)) {
- return;
- }
+ // Default telemetry to disabled without showing popup
+ Settings::values.enable_telemetry = false;
+ system->ApplySettings();
+ // Mark telemetry callout as shown to prevent future popups
UISettings::values.callout_flags =
UISettings::values.callout_flags.GetValue() | static_cast<uint32_t>(CalloutFlag::Telemetry);
- const QString telemetry_message =
- tr("<a href='https://citron-emu.org/help/feature/telemetry/'>Anonymous "
- "data is collected</a> to help improve citron. "
- "<br/><br/>Would you like to share your usage data with us?");
- if (!question(this, tr("Telemetry"), telemetry_message)) {
- Settings::values.enable_telemetry = false;
- system->ApplySettings();
- }
}
const int GMainWindow::max_recent_files_item;