trying to emit background changed
This commit is contained in:
parent
79bb2daa41
commit
f6ee855289
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue