expand use of new BasicUI API for transport button state to all control surfaces

This commit is contained in:
Paul Davis 2019-12-29 18:53:22 -07:00
parent 52aa405ce3
commit d79d2807b1
3 changed files with 10 additions and 10 deletions

View file

@ -1062,10 +1062,10 @@ US2400Protocol::notify_transport_state_changed()
}
// switch various play and stop buttons on / off
update_global_button (Button::Play, session->transport_speed() == 1.0);
update_global_button (Button::Stop, session->transport_stopped_or_stopping ());
update_global_button (Button::Rewind, session->transport_speed() < 0.0);
update_global_button (Button::Ffwd, session->transport_speed() > 1.0);
update_global_button (Button::Play, play_button_onoff());
update_global_button (Button::Stop, stop_button_onoff());
update_global_button (Button::Rewind, rewind_button_onoff());
update_global_button (Button::Ffwd, ffwd_button_onoff());
// sometimes a return to start leaves time code at old time
_timecode_last = string (10, ' ');