Skip to content

Commit

Permalink
fix: update id in applet example
Browse files Browse the repository at this point in the history
  • Loading branch information
leb-kuchen authored and jackpot51 committed Jan 19, 2024
1 parent 994e93d commit 3eed30f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/applet/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,12 @@ impl cosmic::Application for Window {
return if let Some(p) = self.popup.take() {
destroy_popup(p)
} else {
self.id_ctr += 1;
let new_id = Id(self.id_ctr);
let new_id = Id::unique();
self.popup.replace(new_id);
let mut popup_settings =
self.core
.applet
.get_popup_settings(Id(0), new_id, None, None, None);
.get_popup_settings(Id::MAIN, new_id, None, None, None);
popup_settings.positioner.size_limits = Limits::NONE
.max_width(372.0)
.min_width(300.0)
Expand Down

0 comments on commit 3eed30f

Please sign in to comment.