🚧 Working on actions system

This commit is contained in:
Manuel Cillero 2024-03-25 17:38:39 +01:00
parent 2ea0a1698e
commit e732244a2e
15 changed files with 165 additions and 153 deletions

View file

@ -93,7 +93,7 @@ pub trait ThemeTrait: PackageTrait + Send + Sync {
match component.type_id() {
t if t == TypeId::of::<Block>() => {
if let Some(b) = component_as_mut::<Block>(component) {
if let Some(b) = component.downcast_mut::<Block>() {
b.alter_title("New title");
}
},
@ -114,7 +114,7 @@ pub trait ThemeTrait: PackageTrait + Send + Sync {
match component.type_id() {
t if t == TypeId::of::<Block>() => {
if let Some(b) = component_as_mut::<Block>(component) {
if let Some(b) = component.downcast_mut::<Block>() {
b.alter_title("New title");
}
},