Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show add applet context drawer #789

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {}
Loading