Qt: add Settings::DevicesChanged signal
This commit is contained in:
parent
3d1a7737d8
commit
b689a195ff
|
@ -22,6 +22,7 @@
|
|||
#include "DolphinQt/GameList/GameListModel.h"
|
||||
#include "DolphinQt/QtUtils/QueueOnObject.h"
|
||||
|
||||
#include "InputCommon/ControllerInterface/ControllerInterface.h"
|
||||
#include "InputCommon/InputConfig.h"
|
||||
|
||||
Settings::Settings()
|
||||
|
@ -34,6 +35,9 @@ Settings::Settings()
|
|||
Config::AddConfigChangedCallback(
|
||||
[this] { QueueOnObject(this, [this] { emit ConfigChanged(); }); });
|
||||
|
||||
g_controller_interface.RegisterDevicesChangedCallback(
|
||||
[this] { QueueOnObject(this, [this] { emit DevicesChanged(); }); });
|
||||
|
||||
SetCurrentUserStyle(GetCurrentUserStyle());
|
||||
}
|
||||
|
||||
|
|
|
@ -159,6 +159,7 @@ signals:
|
|||
void DebugFontChanged(QFont font);
|
||||
void AutoUpdateTrackChanged(const QString& mode);
|
||||
void AnalyticsToggled(bool enabled);
|
||||
void DevicesChanged();
|
||||
|
||||
private:
|
||||
bool m_batch = false;
|
||||
|
|
Loading…
Reference in New Issue