all repos — mgba @ a7588f25bb48334364296bcd7d3a4b66a699eb1c

mGBA Game Boy Advance Emulator

Sync pause setting with the menu properly
Jeffrey Pfau jeffrey@endrift.com
Tue, 22 Jul 2014 02:22:03 -0700
commit

a7588f25bb48334364296bcd7d3a4b66a699eb1c

parent

42041fa0596c64ae74e9de9af829799276a23ad0

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -172,6 +172,8 @@ pause->setChecked(false);

pause->setCheckable(true); pause->setShortcut(tr("Ctrl+P")); connect(pause, SIGNAL(triggered(bool)), m_controller, SLOT(setPaused(bool))); + connect(m_controller, &GameController::gamePaused, [pause]() { pause->setChecked(true); }); + connect(m_controller, &GameController::gameUnpaused, [pause]() { pause->setChecked(false); }); m_gameActions.append(pause); emulationMenu->addAction(pause);