fix: show add applet context drawer

This commit is contained in:
Ashley Wulber 2024-11-25 13:10:06 -05:00 committed by Ashley Wulber
parent 508b05135a
commit 5a7a3c1fa5
2 changed files with 11 additions and 1 deletions

View file

@ -203,7 +203,13 @@ impl cosmic::Application for SettingsApp {
app.insert_page::<input::Page>();
app.insert_page::<time::Page>();
app.insert_page::<system::Page>();
#[cfg(feature = "wayland")]
{
app.insert_page::<desktop::panel::Page>();
app.insert_page::<desktop::dock::Page>();
app.insert_page::<desktop::panel::applets_inner::Page>();
app.insert_page::<desktop::dock::applets::Page>();
}
let active_id = match flags.sub_command {
Some(p) => app.subtask_to_page(&p),
None => app

View file

@ -107,6 +107,10 @@ impl page::Page<crate::pages::Message> for Page {
None => return None,
})
}
fn set_id(&mut self, entity: cosmic_settings_page::Entity) {
self.inner.set_id(entity);
}
}
impl page::AutoBind<crate::pages::Message> for Page {}