fix (example): update to rectangle tracker subscription
This commit is contained in:
parent
c2ddc97685
commit
6e6677bfac
1 changed files with 1 additions and 7 deletions
|
|
@ -419,12 +419,6 @@ impl Application for Window {
|
||||||
Message::Close
|
Message::Close
|
||||||
}
|
}
|
||||||
fn subscription(&self) -> iced::Subscription<Self::Message> {
|
fn subscription(&self) -> iced::Subscription<Self::Message> {
|
||||||
rectangle_tracker_subscription(0).map(|m| {
|
rectangle_tracker_subscription(0).map(|(_, e)| Message::Rectangle(e))
|
||||||
if let Some((_, e)) = m {
|
|
||||||
Message::Rectangle(e)
|
|
||||||
} else {
|
|
||||||
Message::Ignore
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue