Pārlūkot izejas kodu

Do not activate threshold annotations unless the batch timer is running

Neal Wilson 7 gadus atpakaļ
vecāks
revīzija
dddd6bb6ff
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8
    1
      config/Windows/productionroaster.xml

+ 8
- 1
config/Windows/productionroaster.xml Parādīt failu

@@ -473,7 +473,14 @@
473 473
                             } else {
474 474
                                 noteDetector.setEdgeDirection(ThresholdDetector.Ascending);
475 475
                             }
476
-                            noteDetector.timeForValue.connect(noteEmitter.annotate);
476
+                            var scope = new Object;
477
+                            scope.invoke = function() {
478
+                                if(timer.running) {
479
+                                    arguments.callee.noteEmitter.annotate();
480
+                                }
481
+                            }
482
+                            scope.invoke.noteEmitter = noteEmitter;
483
+                            noteDetector.timeForValue.connect(scope.invoke);
477 484
                             annotationButtons.push(noteEmitter);
478 485
                         }
479 486
 			else if(driverReference.driver == "valueannotation")

Notiek ielāde…
Atcelt
Saglabāt