Add file events to iced_native:🪟:Event
This commit is contained in:
parent
5de404ddd9
commit
f73bacb454
6 changed files with 29 additions and 8 deletions
|
|
@ -192,9 +192,10 @@ pub trait Application: Sized {
|
|||
);
|
||||
|
||||
debug.event_processing_started();
|
||||
events.iter().for_each(|event| {
|
||||
subscription_pool.broadcast_event(*event)
|
||||
});
|
||||
events
|
||||
.iter()
|
||||
.cloned()
|
||||
.for_each(|event| subscription_pool.broadcast_event(event));
|
||||
|
||||
let mut messages = user_interface.update(
|
||||
&renderer,
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ impl Pool {
|
|||
.values_mut()
|
||||
.filter_map(|connection| connection.listener.as_mut())
|
||||
.for_each(|listener| {
|
||||
if let Err(error) = listener.try_send(event) {
|
||||
if let Err(error) = listener.try_send(event.clone()) {
|
||||
log::error!(
|
||||
"Error sending event to subscription: {:?}",
|
||||
error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue