fix: remove obsolete event-loop arguments from native close handling
Verify Tessera GUI / verify (push) Successful in 3m24s

This commit is contained in:
2026-10-24 01:01:59 +08:00
parent 1e7925ca65
commit 435f95187b
+5 -5
View File
@@ -185,7 +185,7 @@ impl TesseraApp {
} }
} }
fn apply_window_commands(&mut self, event_loop: &ActiveEventLoop) { fn apply_window_commands(&mut self) {
let Ok(mut namespace) = self.namespace.write() else { let Ok(mut namespace) = self.namespace.write() else {
return; return;
}; };
@@ -296,7 +296,7 @@ impl TesseraApp {
fn document_updated(&mut self, event_loop: &ActiveEventLoop) { fn document_updated(&mut self, event_loop: &ActiveEventLoop) {
self.reconcile_windows(event_loop); self.reconcile_windows(event_loop);
self.apply_window_commands(event_loop); self.apply_window_commands();
if let Ok(namespace) = self.namespace.read() { if let Ok(namespace) = self.namespace.read() {
self.developer_tools.document_updated(&namespace.document); self.developer_tools.document_updated(&namespace.document);
let frame = &namespace.document.frame; let frame = &namespace.document.frame;
@@ -997,7 +997,7 @@ impl TesseraApp {
self.window = Some(window.clone()); self.window = Some(window.clone());
self.context = Some(context); self.context = Some(context);
self.surface = Some(surface); self.surface = Some(surface);
self.apply_window_commands(event_loop); self.apply_window_commands();
self.publish_viewport(); self.publish_viewport();
window.request_redraw(); window.request_redraw();
self.native_error = None; self.native_error = None;
@@ -1174,7 +1174,7 @@ impl ApplicationHandler<AppEvent> for TesseraApp {
fn window_event( fn window_event(
&mut self, &mut self,
event_loop: &ActiveEventLoop, _event_loop: &ActiveEventLoop,
window_id: WindowId, window_id: WindowId,
event: WindowEvent, event: WindowEvent,
) { ) {
@@ -1192,7 +1192,7 @@ impl ApplicationHandler<AppEvent> for TesseraApp {
.as_ref() .as_ref()
.is_some_and(|window| window.id() == window_id) .is_some_and(|window| window.id() == window_id)
}) { }) {
child.window_event(event_loop, window_id, event); child.window_event(_event_loop, window_id, event);
self.publish_viewport(); self.publish_viewport();
} }
return; return;