From e5981d006b1fa9651a68de1cd3813d7ba37d4425 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 13 Mar 2025 15:10:16 -0500 Subject: [PATCH] adding the service_item to the nav_bar --- src/main.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f0a0833..5df1c51 100644 --- a/src/main.rs +++ b/src/main.rs @@ -527,7 +527,8 @@ impl cosmic::Application for App { opened_item = true; } _ => { - debug!("none"); + // debug!("none"); + () } }; if let Some(library) = &mut self.library { @@ -627,6 +628,13 @@ impl cosmic::Application for App { debug!(?entity); debug!(?action); debug!(?service_item); + + if let Some(item) = service_item { + self.nav_model + .insert() + .text(item.title.clone()) + .data(item); + } Task::none() } Message::AddLibrary(library) => {