all repos — mgba @ 2fbd31c51a1ef7c0976b3205e524d51d604d78d1

mGBA Game Boy Advance Emulator

Qt: Make "Mute" able to be bound to a key (fixes #559)
Vicki Pfau vi@endrift.com
Wed, 05 Apr 2017 13:17:11 -0700
commit

2fbd31c51a1ef7c0976b3205e524d51d604d78d1

parent

81f38fd76f8a0d1db377243e0e69f568118dde1f

2 files changed, 3 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -83,6 +83,7 @@ - Qt: Remove audio buffer sizing in AudioProcessorQt

- Qt: Re-enable QtMultimedia on Windows - FFmpeg: Return false if a file fails to open - FFmpeg: Force MP4 files to YUV420P + - Qt: Make "Mute" able to be bound to a key 0.5.2: (2016-12-31) Bugfixes:
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -1266,11 +1266,12 @@

avMenu->addSeparator(); ConfigOption* mute = m_config->addOption("mute"); - mute->addBoolean(tr("Mute"), avMenu); + QAction* muteAction = mute->addBoolean(tr("Mute"), avMenu); mute->connect([this](const QVariant& value) { reloadConfig(); }, this); m_config->updateOption("mute"); + addControlledAction(avMenu, muteAction, "mute"); QMenu* target = avMenu->addMenu(tr("FPS target")); ConfigOption* fpsTargetOption = m_config->addOption("fpsTarget");