Plug received_url in winit::program

This commit is contained in:
Héctor Ramón Jiménez 2024-08-01 19:24:30 +02:00
parent fd593f8fb0
commit 169667ef1b
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -414,6 +414,23 @@ where
);
}
fn received_url(
&mut self,
event_loop: &winit::event_loop::ActiveEventLoop,
url: String,
) {
self.process_event(
event_loop,
Event::EventLoopAwakened(
winit::event::Event::PlatformSpecific(
winit::event::PlatformSpecific::MacOS(
winit::event::MacOS::ReceivedUrl(url),
),
),
),
);
}
fn about_to_wait(
&mut self,
event_loop: &winit::event_loop::ActiveEventLoop,