Qt: Add mute option to menu
Jeffrey Pfau jeffrey@endrift.com
Tue, 01 Dec 2015 20:29:33 -0800
2 files changed,
8 insertions(+),
5 deletions(-)
M
CHANGES
→
CHANGES
@@ -58,6 +58,7 @@ - GBA: Implement bad I/O register loading
- GBA Memory: Add GBAView* functions for viewing memory directly without bus issues - Util: Add MutexTryLock - Qt: Gray out "Skip BIOS intro" while "Use BIOS file" is unchecked + - Qt: Add mute option to menu 0.3.1: (2015-10-24) Bugfixes:
M
src/platform/qt/Window.cpp
→
src/platform/qt/Window.cpp
@@ -1063,6 +1063,13 @@ addControlledAction(avMenu, shaderView, "shaderSelector");
avMenu->addSeparator(); + ConfigOption* mute = m_config->addOption("mute"); + mute->addBoolean(tr("Mute"), avMenu); + mute->connect([this](const QVariant& value) { + m_controller->setMute(value.toBool()); + }, this); + m_config->updateOption("mute"); + QMenu* target = avMenu->addMenu(tr("FPS target")); ConfigOption* fpsTargetOption = m_config->addOption("fpsTarget"); fpsTargetOption->connect([this](const QVariant& value) {@@ -1221,11 +1228,6 @@
ConfigOption* volume = m_config->addOption("volume"); volume->connect([this](const QVariant& value) { m_controller->setVolume(value.toInt()); - }, this); - - ConfigOption* mute = m_config->addOption("mute"); - mute->connect([this](const QVariant& value) { - m_controller->setMute(value.toBool()); }, this); ConfigOption* rewindEnable = m_config->addOption("rewindEnable");