fix (example): update to rectangle tracker subscription

This commit is contained in:
Ashley Wulber 2023-05-19 17:49:17 -04:00
parent c2ddc97685
commit 6e6677bfac
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -419,12 +419,6 @@ impl Application for Window {
Message::Close
}
fn subscription(&self) -> iced::Subscription<Self::Message> {
rectangle_tracker_subscription(0).map(|m| {
if let Some((_, e)) = m {
Message::Rectangle(e)
} else {
Message::Ignore
}
})
rectangle_tracker_subscription(0).map(|(_, e)| Message::Rectangle(e))
}
}