Qt: Fix fast forward mute being reset (fixes #1574)

This commit is contained in:
Vicki Pfau 2019-11-11 01:39:43 -08:00
parent 4e03b15040
commit 77ab0ef770
2 changed files with 4 additions and 1 deletions

View File

@ -94,6 +94,7 @@ Emulation fixes:
Other fixes:
- 3DS: Fix screen darkening (fixes mgba.io/i/1562)
- Vita: Fix analog controls (fixes mgba.io/i/1554)
- Qt: Fix fast forward mute being reset (fixes mgba.io/i/1574)
0.8 beta 1: (2019-10-20)
- Initial beta for 0.8

View File

@ -1405,7 +1405,9 @@ void Window::setupMenu(QMenuBar* menubar) {
ConfigOption* mute = m_config->addOption("mute");
mute->addBoolean(tr("Mute"), &m_actions, "av");
mute->connect([this](const QVariant& value) {
m_config->setOption("fastForwardMute", static_cast<bool>(value.toInt()));
if (value.toInt()) {
m_config->setOption("fastForwardMute", true);
}
reloadConfig();
}, this);
m_config->updateOption("mute");