mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-12 08:35:05 -04:00
Store name in HYTEKeyboardController to avoid setting it in detector
This commit is contained in:
@@ -30,9 +30,8 @@ void DetectHYTEKeyboard(hid_device_info* info, const std::string& name)
|
||||
|
||||
if(dev)
|
||||
{
|
||||
HYTEKeyboardController* controller = new HYTEKeyboardController(dev, info->path);
|
||||
HYTEKeyboardController* controller = new HYTEKeyboardController(dev, info->path, name);
|
||||
RGBController_HYTEKeyboard* rgb_controller = new RGBController_HYTEKeyboard(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user