Initialize OpenRazer/OpenRazer-Win32 controller to disabled if not present in settings
This commit is contained in:
parent
bfdf620650
commit
b148bbe740
1 changed files with 12 additions and 1 deletions
|
|
@ -863,7 +863,18 @@ void ResourceManager::UpdateDetectorSettings()
|
||||||
|
|
||||||
if(!(detector_settings.contains("detectors") && detector_settings["detectors"].contains(detection_string)))
|
if(!(detector_settings.contains("detectors") && detector_settings["detectors"].contains(detection_string)))
|
||||||
{
|
{
|
||||||
detector_settings["detectors"][detection_string] = true;
|
/*-------------------------------------------------*\
|
||||||
|
| Default the OpenRazer detector to disabled, as it |
|
||||||
|
| overrides RazerController when enabled |
|
||||||
|
\*-------------------------------------------------*/
|
||||||
|
if(strcmp(detection_string, "OpenRazer") == 0 || strcmp(detection_string, "OpenRazer-Win32") == 0)
|
||||||
|
{
|
||||||
|
detector_settings["detectors"][detection_string] = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
detector_settings["detectors"][detection_string] = true;
|
||||||
|
}
|
||||||
save_settings = true;
|
save_settings = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue