Use new enum variant and new winit repo

This commit is contained in:
Richard 2021-06-09 15:00:01 -03:00 committed by Héctor Ramón Jiménez
parent 9ae22b58d8
commit 96a462d2f2
No known key found for this signature in database
GPG key ID: 44B88EB52AB1EE8D
6 changed files with 41 additions and 18 deletions

View file

@ -310,8 +310,9 @@ async fn run_instance<A, E, C>(
window.request_redraw();
}
event::Event::ReceivedUrl(url) => {
events.push(iced_native::Event::UrlReceived(url));
event::Event::PlatformSpecific(event::PlatformSpecific::MacOS(event::MacOS::ReceivedUrl(url))) => {
use iced_native::event;
events.push(iced_native::Event::PlatformSpecific(event::PlatformSpecific::MacOS(event::MacOS::ReceivedUrl(url))));
}
event::Event::UserEvent(message) => {
messages.push(message);