trying to emit background changed

This commit is contained in:
Chris Cochrun 2023-09-21 11:45:12 -05:00
parent 79bb2daa41
commit f6ee855289

View file

@ -66,6 +66,7 @@ mod song_model {
},
TitleChanged {},
FontSizeChanged {},
BackgroundChanged {},
}
enum Role {
@ -536,11 +537,13 @@ mod song_model {
{
song.background =
updated_background.to_string();
println!("change: updated_background: {:?} model_index: {:?} roles: {:?}", updated_background, model_index, vector_roles.get(0));
self.as_mut().emit_data_changed(
model_index,
model_index,
&vector_roles,
);
self.as_mut().emit_background_changed();
true
} else {
false