Analytics: Implement UI.

* Opt-in popup on first start.
* Checkbox and button in the main config dialog.
This commit is contained in:
Pierre Bourdon
2016-06-18 03:24:06 +02:00
parent 121f270367
commit 63dab254e0
3 changed files with 57 additions and 0 deletions

View File

@ -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")