updating the presenter
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Chris Cochrun 2025-09-10 16:01:25 -05:00
parent 48b3852c95
commit 2dc3f20e82
2 changed files with 5 additions and 0 deletions

View file

@ -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) => {

View file

@ -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