mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
Qt: add Settings::DevicesChanged signal
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user