momentary fix

This commit is contained in:
Paul Lipscomb
2026-06-29 03:56:16 -04:00
parent e5e0a9df96
commit 16fa8395c7
+5 -6
View File
@@ -2165,12 +2165,11 @@ def midi_message_route_hw_to_output_cc(fader_uid, value):
if t.uid == fader_uid: if t.uid == fader_uid:
t.cc_input_lbl.setText(f"CC{t.hw_cc} [{value}]") t.cc_input_lbl.setText(f"CC{t.hw_cc} [{value}]")
if t.output_mode == "osc": if t.output_mode == "osc":
if value > 0: addr = t.osc_addr_edit.text().strip() or "/play"
addr = t.osc_addr_edit.text().strip() or "/play" send_osc_message(addr, 1.0)
send_osc_message(addr, 1.0) t.cc_output_lbl.setText(f"{addr} [1.0]")
t.cc_output_lbl.setText(f"{addr} [1.0]") t.led_dot.setStyleSheet("background-color: #00e676; border-radius: 3px;")
t.led_dot.setStyleSheet("background-color: #00e676; border-radius: 3px;") QTimer.singleShot(150, lambda: t.led_dot.setStyleSheet("background-color: #3c3c3c; border-radius: 3px;"))
QTimer.singleShot(150, lambda: t.led_dot.setStyleSheet("background-color: #3c3c3c; border-radius: 3px;"))
else: else:
out_cc = t.cc_spin.value() out_cc = t.cc_spin.value()
if t.trigger_mode == "momentary": if t.trigger_mode == "momentary":