rec-light patch from jim duchek (thanks!)
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 26 Oct 2006 18:13:54 +0000 (18:13 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 26 Oct 2006 18:13:54 +0000 (18:13 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1027 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/surfaces/tranzport/tranzport_control_protocol.cc

index 2e2d9432443965ac84ba8b512ff3d43b35c69c7d..f0936290da170e9f8665bcf63f40654ce77dee02 100644 (file)
@@ -760,6 +760,14 @@ TranzportControlProtocol::update_state ()
                }
        }
 
+       if (pending_lights[LightTrackrec] != lights[LightTrackrec]) {
+               if (pending_lights[LightTrackrec]) {
+                       light_on (LightTrackrec);
+               } else {
+                       light_off (LightTrackrec);
+               }
+       }
+
        if (pending_lights[LightTrackmute] != lights[LightTrackmute]) {
                if (pending_lights[LightTrackmute]) {
                        light_on (LightTrackmute);