mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Only show signal detection area, if grabber is enabled
This commit is contained in:
parent
7b8711af3a
commit
f1fef198c6
@ -128,7 +128,7 @@ $(document).ready(function () {
|
||||
|
||||
function printLedsToCanvas(colors) {
|
||||
|
||||
if (grabberConfig.signalDetection && toggleSigDetectArea && storedAccess === 'expert') {
|
||||
if (grabberConfig.enable && grabberConfig.signalDetection && toggleSigDetectArea && storedAccess === 'expert') {
|
||||
|
||||
sigDetectAreaCanvasNodeCtx.setLineDash([5, 5]);
|
||||
sigDetectAreaCanvasNodeCtx.stroke(build2DPath(grabberConfig.sDHOffsetMin * canvas_width,
|
||||
@ -178,7 +178,7 @@ $(document).ready(function () {
|
||||
}
|
||||
|
||||
function updateLedLayout() {
|
||||
if (grabberConfig.signalDetection && storedAccess === 'expert') {
|
||||
if (grabberConfig.enable && grabberConfig.signalDetection && storedAccess === 'expert') {
|
||||
$("#sigDetectArea_toggle").show();
|
||||
} else {
|
||||
$("#sigDetectArea_toggle").hide();
|
||||
|
Loading…
x
Reference in New Issue
Block a user