mirror of https://github.com/mgba-emu/mgba.git
Qt: Add mute option to menu
This commit is contained in:
parent
5c5ac62901
commit
e0863dc708
1
CHANGES
1
CHANGES
|
@ -58,6 +58,7 @@ Misc:
|
||||||
- GBA Memory: Add GBAView* functions for viewing memory directly without bus issues
|
- GBA Memory: Add GBAView* functions for viewing memory directly without bus issues
|
||||||
- Util: Add MutexTryLock
|
- Util: Add MutexTryLock
|
||||||
- Qt: Gray out "Skip BIOS intro" while "Use BIOS file" is unchecked
|
- Qt: Gray out "Skip BIOS intro" while "Use BIOS file" is unchecked
|
||||||
|
- Qt: Add mute option to menu
|
||||||
|
|
||||||
0.3.1: (2015-10-24)
|
0.3.1: (2015-10-24)
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
|
|
@ -1063,6 +1063,13 @@ void Window::setupMenu(QMenuBar* menubar) {
|
||||||
|
|
||||||
avMenu->addSeparator();
|
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"));
|
QMenu* target = avMenu->addMenu(tr("FPS target"));
|
||||||
ConfigOption* fpsTargetOption = m_config->addOption("fpsTarget");
|
ConfigOption* fpsTargetOption = m_config->addOption("fpsTarget");
|
||||||
fpsTargetOption->connect([this](const QVariant& value) {
|
fpsTargetOption->connect([this](const QVariant& value) {
|
||||||
|
@ -1223,11 +1230,6 @@ void Window::setupMenu(QMenuBar* menubar) {
|
||||||
m_controller->setVolume(value.toInt());
|
m_controller->setVolume(value.toInt());
|
||||||
}, this);
|
}, 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");
|
ConfigOption* rewindEnable = m_config->addOption("rewindEnable");
|
||||||
rewindEnable->connect([this](const QVariant& value) {
|
rewindEnable->connect([this](const QVariant& value) {
|
||||||
m_controller->setRewind(value.toBool(), m_config->getOption("rewindBufferCapacity").toInt(), m_config->getOption("rewindBufferInterval").toInt());
|
m_controller->setRewind(value.toBool(), m_config->getOption("rewindBufferCapacity").toInt(), m_config->getOption("rewindBufferInterval").toInt());
|
||||||
|
|
Loading…
Reference in New Issue