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 cd63f615e1
commit 00db64a4ed
1 changed files with 3 additions and 2 deletions

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;
}