more momentary fixes

This commit is contained in:
Paul Lipscomb
2026-06-29 04:27:39 -04:00
parent fc9da58d7c
commit 3861a8f508
2 changed files with 4 additions and 7 deletions
+4 -5
View File
@@ -2261,11 +2261,10 @@ def midi_message_route_hw_to_output_cc(fader_uid, value):
else:
out_cc = t.cc_spin.value()
if t.trigger_mode == "momentary":
if value > 0:
send_transport_cc(out_cc, 127)
t.cc_output_lbl.setText(f"CC{out_cc} [127]")
t.led_dot.setStyleSheet("background-color: #00e676; border-radius: 3px;")
QTimer.singleShot(150, lambda: t.led_dot.setStyleSheet("background-color: #3c3c3c; border-radius: 3px;"))
send_transport_cc(out_cc, 127)
t.cc_output_lbl.setText(f"CC{out_cc} [127]")
t.led_dot.setStyleSheet("background-color: #00e676; border-radius: 3px;")
QTimer.singleShot(150, lambda: t.led_dot.setStyleSheet("background-color: #3c3c3c; border-radius: 3px;"))
else:
should_be_on = value > 63
if t.toggle_state != should_be_on: