all repos — mgba @ e0863dc708d4d16d4047adb000c4ee65ab4130ed

mGBA Game Boy Advance Emulator

Qt: Add mute option to menu
Jeffrey Pfau jeffrey@endrift.com
Tue, 01 Dec 2015 20:29:33 -0800
commit

e0863dc708d4d16d4047adb000c4ee65ab4130ed

parent

5c5ac62901be2a229325147e5aa91c587d5cc9e7

2 files changed, 8 insertions(+), 5 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.cppsrc/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");