|
@@ -3394,7 +3394,7 @@ fn handle_event_loop<T: UserEvent>(
|
|
|
}
|
|
|
}
|
|
|
TaoWindowEvent::CloseRequested => {
|
|
|
- on_close_requested(callback, window_id, windows.clone());
|
|
|
+ on_close_requested(callback, window_id, windows);
|
|
|
}
|
|
|
TaoWindowEvent::Destroyed => {
|
|
|
let removed = windows.0.borrow_mut().remove(&window_id).is_some();
|
|
@@ -3455,10 +3455,10 @@ fn handle_event_loop<T: UserEvent>(
|
|
|
}
|
|
|
}
|
|
|
Message::Window(id, WindowMessage::Close) => {
|
|
|
- on_close_requested(callback, id, windows.clone());
|
|
|
+ on_close_requested(callback, id, windows);
|
|
|
}
|
|
|
Message::Window(id, WindowMessage::Destroy) => {
|
|
|
- on_window_close(id, windows.clone());
|
|
|
+ on_window_close(id, windows);
|
|
|
}
|
|
|
Message::UserEvent(t) => callback(RunEvent::UserEvent(t)),
|
|
|
message => {
|