Pass the GuiContext to vizia editors

There's no clean way to expose the state save/restore functionality
through events.
This commit is contained in:
Robbert van der Helm
2022-04-07 16:14:34 +02:00
parent 083885a40c
commit 56e9cd54c1
4 changed files with 11 additions and 7 deletions

View File

@@ -41,7 +41,7 @@ pub(crate) fn create(
params: Arc<CrispParams>,
editor_state: Arc<ViziaState>,
) -> Option<Box<dyn Editor>> {
create_vizia_editor(editor_state, move |cx| {
create_vizia_editor(editor_state, move |cx, _| {
Data {
params: params.clone(),
}