adding the service_item to the nav_bar
This commit is contained in:
parent
561e03ea81
commit
e5981d006b
10
src/main.rs
10
src/main.rs
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue