listener handles, auto-clean destroyed listeners, minor refactor

This commit is contained in:
Aleksander
2025-07-06 20:53:40 +02:00
parent 92444bb5c4
commit 857c5ec865
16 changed files with 348 additions and 182 deletions

View File

@@ -52,7 +52,7 @@ pub fn parse_component_button<'a, U1, U2>(
));
}
let _button = button::construct(
ctx.components.push(button::construct(
ctx.layout,
ctx.listeners,
parent_id,
@@ -64,7 +64,7 @@ pub fn parse_component_button<'a, U1, U2>(
text_style,
round,
},
)?;
)?);
Ok(())
}