This commit is contained in:
parent
48b3852c95
commit
2dc3f20e82
2 changed files with 5 additions and 0 deletions
|
@ -951,6 +951,7 @@ impl cosmic::Application for App {
|
|||
}
|
||||
Message::AppendServiceItem(item) => {
|
||||
self.service.push(item);
|
||||
self.presenter.update_items(self.service.clone());
|
||||
Task::none()
|
||||
}
|
||||
Message::Search(query) => {
|
||||
|
|
|
@ -674,6 +674,10 @@ impl Presenter {
|
|||
Task::none()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn update_items(&mut self, items: Vec<ServiceItem>) {
|
||||
self.service = items;
|
||||
}
|
||||
}
|
||||
|
||||
// This needs to be async so that rodio's audio will work
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue