From 1b9d6a94a3ad513428a88399b26eaa849c90c708 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 25 Nov 2024 13:10:06 -0500 Subject: [PATCH] fix: show add applet context drawer --- cosmic-settings/src/app.rs | 8 +++++++- cosmic-settings/src/pages/desktop/dock/applets.rs | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cosmic-settings/src/app.rs b/cosmic-settings/src/app.rs index 612de777..06c5445c 100644 --- a/cosmic-settings/src/app.rs +++ b/cosmic-settings/src/app.rs @@ -203,7 +203,13 @@ impl cosmic::Application for SettingsApp { app.insert_page::(); app.insert_page::(); app.insert_page::(); - + #[cfg(feature = "wayland")] + { + app.insert_page::(); + app.insert_page::(); + app.insert_page::(); + app.insert_page::(); + } let active_id = match flags.sub_command { Some(p) => app.subtask_to_page(&p), None => app diff --git a/cosmic-settings/src/pages/desktop/dock/applets.rs b/cosmic-settings/src/pages/desktop/dock/applets.rs index dcf070aa..f0a91b15 100644 --- a/cosmic-settings/src/pages/desktop/dock/applets.rs +++ b/cosmic-settings/src/pages/desktop/dock/applets.rs @@ -107,6 +107,10 @@ impl page::Page for Page { None => return None, }) } + + fn set_id(&mut self, entity: cosmic_settings_page::Entity) { + self.inner.set_id(entity); + } } impl page::AutoBind for Page {}