From 3757c79f80f01a45c09baba69ea170f39393fa36 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Tue, 18 Feb 2025 15:52:09 -0500 Subject: [PATCH] cleanup --- examples/applet/src/window.rs | 1 - examples/application/src/main.rs | 10 +++++----- iced | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/examples/applet/src/window.rs b/examples/applet/src/window.rs index 0936d42d49a..91ed3b01f2a 100644 --- a/examples/applet/src/window.rs +++ b/examples/applet/src/window.rs @@ -135,7 +135,6 @@ impl cosmic::Application for Window { )); } Message::PopupCloseRequested(id) => { - dbg!(id, self.dropdown_id); return cosmic::task::message(cosmic::app::message::destroy_popup::(id)); } } diff --git a/examples/application/src/main.rs b/examples/application/src/main.rs index f101a295f67..4a6252f26e1 100644 --- a/examples/application/src/main.rs +++ b/examples/application/src/main.rs @@ -241,21 +241,21 @@ impl cosmic::Application for App { { vec![cosmic::widget::menu::bar(vec![ Tree::with_children( - Element::from(button::text("hiiiiiiiiiiiiiiiiiii 1")), + menu::root("hiiiiiiiiiiiiiiiiiii 1"), menu::items( &self.keybinds, vec![menu::Item::Button("hi", None, Action::Hi)], ), ), Tree::with_children( - Element::from(button::text("hiiiiiiiiiiiiiiiiii 2")), + menu::root("hiiiiiiiiiiiiiiiiii 2"), menu::items( &self.keybinds, vec![menu::Item::Button("hi 2", None, Action::Hi)], ), ), Tree::with_children( - Element::from(button::text("hiiiiiiiiiiiiiiiiiiiii 3")), + menu::root("hiiiiiiiiiiiiiiiiiiiii 3"), menu::items( &self.keybinds, vec![ @@ -265,7 +265,7 @@ impl cosmic::Application for App { ), ), Tree::with_children( - Element::from(button::text("hi 3")), + menu::root("hi 3"), menu::items( &self.keybinds, vec![ @@ -276,7 +276,7 @@ impl cosmic::Application for App { ), ), Tree::with_children( - Element::from(button::text("hi 4")), + menu::root("hi 4"), menu::items( &self.keybinds, vec![ diff --git a/iced b/iced index 395a90b6e9f..7c8ba09ad39 160000 --- a/iced +++ b/iced @@ -1 +1 @@ -Subproject commit 395a90b6e9f4ce825e96a67583aa4c53e92d4195 +Subproject commit 7c8ba09ad396bb1d9f244f86ec9102665903e145