Qt: Make mute menu option also toggle fast-forward mute (fixes #1424)

This commit is contained in:
Vicki Pfau 2019-05-29 09:33:15 -07:00
parent 6b41d91e69
commit e8383209c5
2 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ Misc:
- Qt: Add native FPS button to settings view
- Qt: Improve sync code
- Switch: Dynamic display resizing
- Qt: Make mute menu option also toggle fast-forward mute (fixes mgba.io/i/1424)
0.7.2: (2019-05-25)
Emulation fixes:

View File

@ -1375,6 +1375,7 @@ 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()));
reloadConfig();
}, this);
m_config->updateOption("mute");