mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Analytics: Implement UI.
* Opt-in popup on first start. * Checkbox and button in the main config dialog.
This commit is contained in:
@ -267,6 +267,30 @@ void DolphinApp::AfterInit()
|
||||
if (!m_batch_mode)
|
||||
main_frame->UpdateGameList();
|
||||
|
||||
if (!SConfig::GetInstance().m_analytics_permission_asked)
|
||||
{
|
||||
int answer = wxMessageBox(
|
||||
_("If authorized, Dolphin can collect data on its performance, "
|
||||
"feature usage, and configuration, as well as data on your system's "
|
||||
"hardware and operating system.\n\n"
|
||||
"No private data is ever collected. This data helps us understand "
|
||||
"how people and emulated games use Dolphin and prioritize our "
|
||||
"efforts. It also helps us identify rare configurations that are "
|
||||
"causing bugs, performance and stability issues.\n"
|
||||
"This authorization can be revoked at any time through Dolphin's "
|
||||
"settings.\n\n"
|
||||
"Do you authorize Dolphin to report this information to Dolphin's "
|
||||
"developers?"),
|
||||
_("Usage statistics reporting"),
|
||||
wxYES_NO, main_frame);
|
||||
|
||||
SConfig::GetInstance().m_analytics_permission_asked = true;
|
||||
SConfig::GetInstance().m_analytics_enabled = (answer == wxYES);
|
||||
SConfig::GetInstance().SaveSettings();
|
||||
|
||||
DolphinAnalytics::Instance()->ReloadConfig();
|
||||
}
|
||||
|
||||
if (m_confirm_stop)
|
||||
{
|
||||
if (m_confirm_setting.Upper() == "TRUE")
|
||||
|
Reference in New Issue
Block a user