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:
parent
ed105fdf66
commit
f4c978cf88
@ -419,10 +419,10 @@ Session::post_engine_init ()
|
||||
void
|
||||
Session::session_loaded ()
|
||||
{
|
||||
SessionLoaded();
|
||||
|
||||
set_clean ();
|
||||
|
||||
SessionLoaded();
|
||||
|
||||
if (_is_new) {
|
||||
save_state ("");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user