fix: show add applet context drawer
This commit is contained in:
parent
508b05135a
commit
5a7a3c1fa5
2 changed files with 11 additions and 1 deletions
|
|
@ -203,7 +203,13 @@ impl cosmic::Application for SettingsApp {
|
||||||
app.insert_page::<input::Page>();
|
app.insert_page::<input::Page>();
|
||||||
app.insert_page::<time::Page>();
|
app.insert_page::<time::Page>();
|
||||||
app.insert_page::<system::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 {
|
let active_id = match flags.sub_command {
|
||||||
Some(p) => app.subtask_to_page(&p),
|
Some(p) => app.subtask_to_page(&p),
|
||||||
None => app
|
None => app
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,10 @@ impl page::Page<crate::pages::Message> for Page {
|
||||||
None => return None,
|
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 {}
|
impl page::AutoBind<crate::pages::Message> for Page {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue