Plug received_url in winit::program
This commit is contained in:
parent
fd593f8fb0
commit
169667ef1b
1 changed files with 17 additions and 0 deletions
|
|
@ -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(
|
fn about_to_wait(
|
||||||
&mut self,
|
&mut self,
|
||||||
event_loop: &winit::event_loop::ActiveEventLoop,
|
event_loop: &winit::event_loop::ActiveEventLoop,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue