diff options
| author | Sleepy Flower Girl <wuhao64@gmail.com> | 2018-06-06 00:16:42 -0400 |
|---|---|---|
| committer | Sleepy Flower Girl <wuhao64@gmail.com> | 2018-06-07 00:59:31 -0400 |
| commit | 57bd13a0ced5694cbeae24413bb5d9fe421a817a (patch) | |
| tree | c960742f570451c0831f887e7b8ea62d297881bd /Source/Core/DolphinWX/Config/GeneralConfigPane.cpp | |
| parent | f25d833dbd013ee215b1f4e0afa556362dba5ad6 (diff) | |
Use new config system for Discord Rich Presence option
This doesn't feel like a mirror change to me.
Diffstat (limited to 'Source/Core/DolphinWX/Config/GeneralConfigPane.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Config/GeneralConfigPane.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/Source/Core/DolphinWX/Config/GeneralConfigPane.cpp b/Source/Core/DolphinWX/Config/GeneralConfigPane.cpp index bd7d164582..e742e4588d 100644 --- a/Source/Core/DolphinWX/Config/GeneralConfigPane.cpp +++ b/Source/Core/DolphinWX/Config/GeneralConfigPane.cpp @@ -59,8 +59,7 @@ void GeneralConfigPane::InitializeGUI() m_dual_core_checkbox = new wxCheckBox(this, wxID_ANY, _("Enable Dual Core (speedup)")); m_cheats_checkbox = new wxCheckBox(this, wxID_ANY, _("Enable Cheats")); #ifdef USE_DISCORD_PRESENCE - m_discord_presence_checkbox = - new wxCheckBox(this, wxID_ANY, _("Show Activity in Your Discord Status")); + m_discord_presence_checkbox = new wxCheckBox(this, wxID_ANY, _("Show Current Game on Discord")); #endif #if defined(USE_ANALYTICS) && USE_ANALYTICS m_analytics_checkbox = new wxCheckBox(this, wxID_ANY, _("Enable Usage Statistics Reporting")); @@ -83,8 +82,8 @@ void GeneralConfigPane::InitializeGUI() m_cheats_checkbox->SetToolTip(_("Enables the use of Action Replay and Gecko cheats.")); #ifdef USE_DISCORD_PRESENCE m_discord_presence_checkbox->SetToolTip( - _("Allow other people on Discord to see your current activity in Dolphin. Activities such as " - "games you are playing, and how long you've been doing something in Dolphin")); + _("Allow other people on Discord to see the current activity in Dolphin. Activities such as " + "the game being played, and for how long")); #endif #if defined(USE_ANALYTICS) && USE_ANALYTICS m_analytics_checkbox->SetToolTip( @@ -162,7 +161,7 @@ void GeneralConfigPane::LoadGUIValues() m_cheats_checkbox->SetValue(startup_params.bEnableCheats); #ifdef USE_DISCORD_PRESENCE - m_discord_presence_checkbox->SetValue(startup_params.bUseDiscordPresence); + m_discord_presence_checkbox->SetValue(Config::Get(MAIN_USE_DISCORD_PRESENCE)); #endif #if defined(USE_ANALYTICS) && USE_ANALYTICS @@ -222,13 +221,7 @@ void GeneralConfigPane::OnCheatCheckBoxChanged(wxCommandEvent& event) #ifdef USE_DISCORD_PRESENCE void GeneralConfigPane::OnDiscordPresenceCheckBoxChanged(wxCommandEvent& event) { - if (SConfig::GetInstance().bUseDiscordPresence) - Discord::Shutdown(); - - SConfig::GetInstance().bUseDiscordPresence = m_discord_presence_checkbox->IsChecked(); - - if (SConfig::GetInstance().bUseDiscordPresence) - Discord::Init(); + Discord::SetDiscordPresenceEnabled(m_discord_presence_checkbox->IsChecked()); } #endif |
