diff options
| author | 2021-06-25 14:47:14 +0200 | |
|---|---|---|
| committer | 2021-06-25 14:47:14 +0200 | |
| commit | 06d0158efbaadc5ae0a6dea22e7a761a3e1c2a8f (patch) | |
| tree | acf6d59469d89e46020cb7a27ce217294ed47e9e /glutin/src | |
| parent | d2c8a3e04b02a1fcf54504bcbd41c488a8bba88a (diff) | |
| parent | 612585109ffc9a14a507c3c8423c6aa790c35cbf (diff) | |
| download | iced-06d0158efbaadc5ae0a6dea22e7a761a3e1c2a8f.tar.gz iced-06d0158efbaadc5ae0a6dea22e7a761a3e1c2a8f.tar.bz2 iced-06d0158efbaadc5ae0a6dea22e7a761a3e1c2a8f.zip | |
Merge pull request #917 from derezzedex/macos-url
Enable receiving URLs on MacOS
Diffstat (limited to '')
| -rw-r--r-- | glutin/src/application.rs | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/glutin/src/application.rs b/glutin/src/application.rs index 79fcf745..a8e5dbf9 100644 --- a/glutin/src/application.rs +++ b/glutin/src/application.rs @@ -237,6 +237,16 @@ async fn run_instance<A, E, C>(                  context.window().request_redraw();              } +            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);              } | 
