Merge pull request #7219 from ligfx/mappingwindow_hotplug

Qt/MappingWindow: update devices combo box when hotplugging devices
This commit is contained in:
spycrab
2018-07-11 10:58:26 +02:00
committed by GitHub
4 changed files with 13 additions and 1 deletions

View File

@ -25,6 +25,7 @@
#include "DolphinQt/GameList/GameListModel.h"
#include "DolphinQt/QtUtils/QueueOnObject.h"
#include "InputCommon/ControllerInterface/ControllerInterface.h"
#include "InputCommon/InputConfig.h"
Settings::Settings()
@ -37,6 +38,9 @@ Settings::Settings()
Config::AddConfigChangedCallback(
[this] { QueueOnObject(this, [this] { emit ConfigChanged(); }); });
g_controller_interface.RegisterDevicesChangedCallback(
[this] { QueueOnObject(this, [this] { emit DevicesChanged(); }); });
SetCurrentUserStyle(GetCurrentUserStyle());
}