mirror of https://github.com/mgba-emu/mgba.git
Qt: Add mute option to menu
This commit is contained in:
parent
24aad82397
commit
d8e04566c0
1
CHANGES
1
CHANGES
|
@ -27,6 +27,7 @@ Bugfixes:
|
|||
- Qt: Fix crash when closing multiplayer windows
|
||||
Misc:
|
||||
- GBA Audio: Implement missing flags on SOUNDCNT_X register
|
||||
- Qt: Add mute option to menu
|
||||
|
||||
0.3.1: (2015-10-24)
|
||||
Bugfixes:
|
||||
|
|
|
@ -1025,6 +1025,13 @@ void Window::setupMenu(QMenuBar* menubar) {
|
|||
|
||||
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) {
|
||||
|
@ -1180,11 +1187,6 @@ void Window::setupMenu(QMenuBar* menubar) {
|
|||
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");
|
||||
rewindEnable->connect([this](const QVariant& value) {
|
||||
m_controller->setRewind(value.toBool(), m_config->getOption("rewindBufferCapacity").toInt(), m_config->getOption("rewindBufferInterval").toInt());
|
||||
|
|
Loading…
Reference in New Issue