Fix apply all for Razer devices that don't have custom mode

This commit is contained in:
Adam Honse committed 2020-04-18 23:34:32 -05:00
1 parent ef6195271e
commit 216fe063e0
1 file changed
+15 -1
+15 -1
View File
@@ -416,7 +416,21 @@ void RGBController_OpenRazer::ResizeZone(int /*zone*/, int /*new_size*/)
void RGBController_OpenRazer::SetCustomMode()
{
active_mode = RAZER_MODE_CUSTOM;
/*---------------------------------------------------------*\
| If device supports custom mode, it will be mode index 0 |
\*---------------------------------------------------------*/
if(modes[0].value == RAZER_MODE_CUSTOM)
{
active_mode = 0;
}
/*---------------------------------------------------------*\
| If not, use static mode. Static mode should be mode index|
| 1 because Off will be index 0 |
\*---------------------------------------------------------*/
else
{
active_mode = 1;
}
}
void RGBController_OpenRazer::UpdateMode()