Merge pull request #7277 from cremno/fix-compilation-without-discord-presence

fix compilation w/o Discord Rich Presence
This commit is contained in:
JosJuice 2018-07-17 13:21:38 +02:00 committed by GitHub
commit 8d8707da2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -83,7 +83,9 @@ void GeneralPane::OnEmulationStateChanged(Core::State state)
m_checkbox_dualcore->setEnabled(!running);
m_checkbox_cheats->setEnabled(!running);
#ifdef USE_DISCORD_PRESENCE
m_checkbox_discord_presence->setEnabled(!running);
#endif
for (QRadioButton* radio_button : m_cpu_cores)
radio_button->setEnabled(!running);