13
0

Fix MIDI patch/CC state restore #9770

MidiTrack::restore_controls is triggered by SessionLoaded
event. Yet MidiControl::actually_set_value checks if
_session.loading() is true and postpones sending actual
events to the synth (which may not be fully loaded).

Before 5d02970de8, Session::post_engine_init unset
"Loading" flag early on, so "loading" was already unset
by the time `SessionLoaded` was emitted.
This commit is contained in:
Robin Gareus 2024-08-29 04:26:33 +02:00
parent ed105fdf66
commit f4c978cf88
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -419,10 +419,10 @@ Session::post_engine_init ()
void void
Session::session_loaded () Session::session_loaded ()
{ {
SessionLoaded();
set_clean (); set_clean ();
SessionLoaded();
if (_is_new) { if (_is_new) {
save_state (""); save_state ("");
} }