Qt/GeneralPane: Disable Rich Presence checkbox while emulation is running

Works around core hanging when Discord Rich Presence is toggled
while emulation is running.
This commit is contained in:
spycrab 2018-07-14 23:38:55 +02:00
parent f184718d1b
commit d438e80bfd

View File

@ -83,6 +83,8 @@ void GeneralPane::OnEmulationStateChanged(Core::State state)
m_checkbox_dualcore->setEnabled(!running);
m_checkbox_cheats->setEnabled(!running);
m_checkbox_discord_presence->setEnabled(!running);
for (QRadioButton* radio_button : m_cpu_cores)
radio_button->setEnabled(!running);
}