13
0

triggerbox: call copy_to_ui_state() after audio|midi state is recalled

This commit is contained in:
Ben Loftis 2022-02-26 08:42:41 -06:00
parent 2821ea7fc6
commit 2dd078aabe

View File

@ -575,8 +575,6 @@ Trigger::set_state (const XMLNode& node, int version)
node.get_property (X_("index"), _index);
set_values (node);
copy_to_ui_state ();
return 0;
}
@ -1284,6 +1282,9 @@ AudioTrigger::set_state (const XMLNode& node, int version)
node.get_property (X_("start"), t);
_start_offset = t.samples();
/* we've changed our internal values; we need to update our queued UIState or they will be lost when UIState is applied */
copy_to_ui_state ();
return 0;
}