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 committed 2018-07-14 23:39:06 +02:00
1 parent f184718d1b
commit d438e80bfd
1 file changed
+2
@@ -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);
}