mirror of https://github.com/mgba-emu/mgba.git
Qt: Make "Mute" able to be bound to a key (fixes #559)
This commit is contained in:
parent
81f38fd76f
commit
2fbd31c51a
1
CHANGES
1
CHANGES
|
@ -83,6 +83,7 @@ Misc:
|
||||||
- Qt: Re-enable QtMultimedia on Windows
|
- Qt: Re-enable QtMultimedia on Windows
|
||||||
- FFmpeg: Return false if a file fails to open
|
- FFmpeg: Return false if a file fails to open
|
||||||
- FFmpeg: Force MP4 files to YUV420P
|
- FFmpeg: Force MP4 files to YUV420P
|
||||||
|
- Qt: Make "Mute" able to be bound to a key
|
||||||
|
|
||||||
0.5.2: (2016-12-31)
|
0.5.2: (2016-12-31)
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
|
|
@ -1266,11 +1266,12 @@ void Window::setupMenu(QMenuBar* menubar) {
|
||||||
avMenu->addSeparator();
|
avMenu->addSeparator();
|
||||||
|
|
||||||
ConfigOption* mute = m_config->addOption("mute");
|
ConfigOption* mute = m_config->addOption("mute");
|
||||||
mute->addBoolean(tr("Mute"), avMenu);
|
QAction* muteAction = mute->addBoolean(tr("Mute"), avMenu);
|
||||||
mute->connect([this](const QVariant& value) {
|
mute->connect([this](const QVariant& value) {
|
||||||
reloadConfig();
|
reloadConfig();
|
||||||
}, this);
|
}, this);
|
||||||
m_config->updateOption("mute");
|
m_config->updateOption("mute");
|
||||||
|
addControlledAction(avMenu, muteAction, "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");
|
||||||
|
|
Loading…
Reference in New Issue