feat: avoid tooltip creation if there is an existing popup

This commit is contained in:
Ashley Wulber 2025-02-27 14:54:03 -05:00
parent 0aed003d09
commit bc0b52ed5f
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
4 changed files with 78 additions and 66 deletions

View file

@ -210,7 +210,10 @@ impl cosmic::Application for Window {
},
);
self.core.applet.applet_tooltip(btn, "test").into()
self.core
.applet
.applet_tooltip(btn, "test", self.popup.is_some())
.into()
}
fn view_window(&self, _id: Id) -> Element<Self::Message> {