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 053c139af5
commit 7246055d90
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,8 @@
Other fixes:
- Switch: Fix threading-related crash on second launch
- Qt: Fix FPS target maxing out at 59.727 (fixes mgba.io/i/1421)
Misc:
- 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

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