mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Qt: use Settings::EmulationStateChanged
This commit is contained in:
parent
8e805dcbf4
commit
3e1072b24d
22 changed files with 97 additions and 160 deletions
|
@ -21,6 +21,7 @@
|
|||
#include <map>
|
||||
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/HW/SI/SI.h"
|
||||
#include "Core/HW/Wiimote.h"
|
||||
#include "Core/HW/WiimoteReal/WiimoteReal.h"
|
||||
|
@ -238,6 +239,9 @@ void ControllersWindow::CreateMainLayout()
|
|||
|
||||
void ControllersWindow::ConnectWidgets()
|
||||
{
|
||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this,
|
||||
[=](Core::State state) { OnEmulationStateChanged(state != Core::State::Uninitialized); });
|
||||
|
||||
connect(m_wiimote_passthrough, &QRadioButton::toggled, this,
|
||||
&ControllersWindow::OnWiimoteModeChanged);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue