13
0

Fix time-stretch dialog clock

This broke in 45e21de209, the clock is not yet visible,
so the value has to be forced.
This commit is contained in:
Robin Gareus 2023-02-09 00:35:27 +01:00
parent bb31125c94
commit 907b0bbfa0
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -149,7 +149,7 @@ TimeFXDialog::TimeFXDialog (Editor& e, bool pitch, timecnt_t const & oldlen, tim
duration_clock = manage (new AudioClock (X_("stretch"), true, X_("stretch"), true, false, true, false, true)); duration_clock = manage (new AudioClock (X_("stretch"), true, X_("stretch"), true, false, true, false, true));
duration_clock->set_session (e.session()); duration_clock->set_session (e.session());
duration_clock->set_mode (AudioClock::BBT); duration_clock->set_mode (AudioClock::BBT);
duration_clock->set_duration (timecnt_t (new_length, position)); duration_clock->set_duration (timecnt_t (new_length, position), true);
Gtk::Alignment* clock_align = manage (new Gtk::Alignment); Gtk::Alignment* clock_align = manage (new Gtk::Alignment);
clock_align->add (*duration_clock); clock_align->add (*duration_clock);