Skip to content

Commit

Permalink
DolphinQt: tell analytics to reload settings on change
Browse files Browse the repository at this point in the history
  • Loading branch information
delroth committed Oct 29, 2018
1 parent 2b905eb commit 6bb31fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/DolphinQt/Settings/GeneralPane.cpp
Expand Up @@ -290,6 +290,7 @@ void GeneralPane::OnSaveConfig()


#if defined(USE_ANALYTICS) && USE_ANALYTICS #if defined(USE_ANALYTICS) && USE_ANALYTICS
Settings::Instance().SetAnalyticsEnabled(m_checkbox_enable_analytics->isChecked()); Settings::Instance().SetAnalyticsEnabled(m_checkbox_enable_analytics->isChecked());
DolphinAnalytics::Instance()->ReloadConfig();
#endif #endif
settings.bCPUThread = m_checkbox_dualcore->isChecked(); settings.bCPUThread = m_checkbox_dualcore->isChecked();
Config::SetBaseOrCurrent(Config::MAIN_CPU_THREAD, m_checkbox_dualcore->isChecked()); Config::SetBaseOrCurrent(Config::MAIN_CPU_THREAD, m_checkbox_dualcore->isChecked());
Expand All @@ -314,6 +315,7 @@ void GeneralPane::OnSaveConfig()
void GeneralPane::GenerateNewIdentity() void GeneralPane::GenerateNewIdentity()
{ {
DolphinAnalytics::Instance()->GenerateNewIdentity(); DolphinAnalytics::Instance()->GenerateNewIdentity();
DolphinAnalytics::Instance()->ReloadConfig();
QMessageBox message_box(this); QMessageBox message_box(this);
message_box.setIcon(QMessageBox::Information); message_box.setIcon(QMessageBox::Information);
message_box.setWindowTitle(tr("Identity Generation")); message_box.setWindowTitle(tr("Identity Generation"));
Expand Down

0 comments on commit 6bb31fc

Please sign in to comment.