mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-30 18:57:52 -05:00
Store name in SRGBmodsControllers to avoid setting it in detectors
This commit is contained in:
@@ -46,17 +46,15 @@ void DetectSRGBmodsControllers(hid_device_info* info, const std::string& name)
|
||||
\*-------------------------------------------------------------------------*/
|
||||
if(product_str == L"SRGBmods Pico LED Controller" || product_str == L"Pico LED Controller")
|
||||
{
|
||||
SRGBmodsPicoController* controller = new SRGBmodsPicoController(dev, info->path);
|
||||
SRGBmodsPicoController* controller = new SRGBmodsPicoController(dev, info->path, name);
|
||||
RGBController_SRGBmodsPico* rgb_controller = new RGBController_SRGBmodsPico(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
else if(product_str == L"LED Controller v1")
|
||||
{
|
||||
SRGBmodsLEDControllerV1* controller = new SRGBmodsLEDControllerV1(dev, info->path);
|
||||
SRGBmodsLEDControllerV1* controller = new SRGBmodsLEDControllerV1(dev, info->path, name);
|
||||
RGBController_SRGBmodsLEDControllerV1* rgb_controller = new RGBController_SRGBmodsLEDControllerV1(controller);
|
||||
rgb_controller->name = name;
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user