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 {},
|
TitleChanged {},
|
||||||
FontSizeChanged {},
|
FontSizeChanged {},
|
||||||
|
BackgroundChanged {},
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Role {
|
enum Role {
|
||||||
|
@ -536,11 +537,13 @@ mod song_model {
|
||||||
{
|
{
|
||||||
song.background =
|
song.background =
|
||||||
updated_background.to_string();
|
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(
|
self.as_mut().emit_data_changed(
|
||||||
model_index,
|
model_index,
|
||||||
model_index,
|
model_index,
|
||||||
&vector_roles,
|
&vector_roles,
|
||||||
);
|
);
|
||||||
|
self.as_mut().emit_background_changed();
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue