fix the presenter not having the service items when they are added
This commit is contained in:
parent
7f0a637cc2
commit
030fc23ac2
2 changed files with 2 additions and 2 deletions
|
|
@ -1059,7 +1059,7 @@ impl cosmic::Application for App {
|
|||
return Task::none();
|
||||
}
|
||||
library::Action::ToService(item) => {
|
||||
self.service.push(item);
|
||||
return self.update(Message::AppendServiceItem(item));
|
||||
}
|
||||
library::Action::Task(task) => {
|
||||
return task.map(|message| {
|
||||
|
|
|
|||
|
|
@ -1059,7 +1059,7 @@ impl<'a> Library {
|
|||
|
||||
let texts = column([text.into(), subtext.into()]);
|
||||
|
||||
let add_button = button::icon(icon::from_name("caret-right"))
|
||||
let add_button = button::icon(icon::from_name("arrow-right"))
|
||||
.on_press(Message::ToService(item.to_service_item()))
|
||||
.tooltip("Add to service");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue