mirror of
https://git.citron-emu.org/Citron/Citron.git
synced 2025-02-12 11:36:26 +01:00
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.
This commit is contained in:
parent
df1ae19742
commit
d4eca46bba
1 changed files with 5 additions and 12 deletions
|
@ -1,4 +1,5 @@
|
||||||
// SPDX-FileCopyrightText: 2014 Citra Emulator Project
|
// SPDX-FileCopyrightText: 2014 Citra Emulator Project
|
||||||
|
// SPDX-FileCopyrightText: 2025 citron Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
|
@ -203,21 +204,13 @@ enum class CalloutFlag : uint32_t {
|
||||||
};
|
};
|
||||||
|
|
||||||
void GMainWindow::ShowTelemetryCallout() {
|
void GMainWindow::ShowTelemetryCallout() {
|
||||||
if (UISettings::values.callout_flags.GetValue() &
|
// Default telemetry to disabled without showing popup
|
||||||
static_cast<uint32_t>(CalloutFlag::Telemetry)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
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;
|
Settings::values.enable_telemetry = false;
|
||||||
system->ApplySettings();
|
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 int GMainWindow::max_recent_files_item;
|
const int GMainWindow::max_recent_files_item;
|
||||||
|
|
Loading…
Reference in a new issue