The controller added callback should pass the controller type
This unifies the behavior between loadControllers() and loadStoredControllers().
This commit is contained in:
parent
1108f3fad2
commit
902c12d88d
1 changed files with 3 additions and 2 deletions
|
@ -199,9 +199,10 @@ void ControllerManager::loadStoredControllers() {
|
||||||
int id = d->settings.getNodeId(Settings::Controller, i);
|
int id = d->settings.getNodeId(Settings::Controller, i);
|
||||||
d->controllers[id].controller = NULL;
|
d->controllers[id].controller = NULL;
|
||||||
d->controllers[id].name = d->settings.getName(Settings::Controller, id);
|
d->controllers[id].name = d->settings.getName(Settings::Controller, id);
|
||||||
d->controllers[id].type = d->settings.getControllerType(id);
|
const int type = d->settings.getControllerType(id);
|
||||||
|
d->controllers[id].type = type;
|
||||||
d->controllers[id].serial = d->settings.getControllerSerial(id);
|
d->controllers[id].serial = d->settings.getControllerSerial(id);
|
||||||
signalControllerEvent(id, TELLSTICK_DEVICE_ADDED, 0, L"");
|
signalControllerEvent(id, TELLSTICK_DEVICE_ADDED, type, L"");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue