Skip to content

Commit

Permalink
fix: show add applet context drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Nov 26, 2024
1 parent 508b051 commit 5a7a3c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cosmic-settings/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions cosmic-settings/src/pages/desktop/dock/applets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

0 comments on commit 5a7a3c1

Please sign in to comment.