mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Set default config for Razer
This commit is contained in:
parent
fcde21c7fd
commit
35fbfabc84
@ -777,6 +777,12 @@ $(document).ready(function () {
|
|||||||
colorOrderDefault = "rgb";
|
colorOrderDefault = "rgb";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "razer":
|
||||||
|
conf_editor.getEditor("root.generalOptions").disable();
|
||||||
|
hwLedCountDefault = 1;
|
||||||
|
colorOrderDefault = "bgr";
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1289,6 +1295,7 @@ function saveLedConfig(genDefLayout = false) {
|
|||||||
case "sk9822":
|
case "sk9822":
|
||||||
case "ws2812spi":
|
case "ws2812spi":
|
||||||
case "piblaster":
|
case "piblaster":
|
||||||
|
case "razer":
|
||||||
default:
|
default:
|
||||||
if (genDefLayout === true) {
|
if (genDefLayout === true) {
|
||||||
ledConfig = {
|
ledConfig = {
|
||||||
@ -1612,7 +1619,7 @@ function updateElements(ledType, key) {
|
|||||||
var maxLedCount = ledProperties.maxLedCount
|
var maxLedCount = ledProperties.maxLedCount
|
||||||
if (hardwareLedCount > maxLedCount)
|
if (hardwareLedCount > maxLedCount)
|
||||||
{
|
{
|
||||||
showInfoDialog('warning', $.i18n("conf_leds_config_warning"), $.i18n('conf_leds_error_hwled_gt_maxled', hardwareLedCount, maxLedCount, maxLedCount));
|
showInfoDialog('warning', $.i18n("conf_leds_config_warning"), $.i18n('conf_leds_error_hwled_gt_maxled', hardwareLedCount, maxLedCount, maxLedCount));
|
||||||
hardwareLedCount = maxLedCount;
|
hardwareLedCount = maxLedCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user