adding the service_item to the nav_bar

This commit is contained in:
Chris Cochrun 2025-03-13 15:10:16 -05:00
parent 561e03ea81
commit e5981d006b

View file

@ -527,7 +527,8 @@ impl cosmic::Application for App {
opened_item = true; opened_item = true;
} }
_ => { _ => {
debug!("none"); // debug!("none");
()
} }
}; };
if let Some(library) = &mut self.library { if let Some(library) = &mut self.library {
@ -627,6 +628,13 @@ impl cosmic::Application for App {
debug!(?entity); debug!(?entity);
debug!(?action); debug!(?action);
debug!(?service_item); debug!(?service_item);
if let Some(item) = service_item {
self.nav_model
.insert()
.text(item.title.clone())
.data(item);
}
Task::none() Task::none()
} }
Message::AddLibrary(library) => { Message::AddLibrary(library) => {