Skip to content

Commit

Permalink
Match on the embark-added OpenURL event
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Jan 10, 2024
1 parent d17613c commit e880c5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui-winit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ egui = { version = "0.24.1", path = "../egui", default-features = false, feature
log = { version = "0.4", features = ["std"] }
raw-window-handle.workspace = true
web-time = { version = "0.2" } # We use web-time so we can (maybe) compile for web
winit = { version = "0.28", default-features = false }
winit = { git = "https://github.com/EmbarkStudios/winit", branch = "ark-staging" }

#! ### Optional dependencies

Expand Down
1 change: 1 addition & 0 deletions crates/egui-winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,7 @@ pub fn short_generic_event_description<T>(event: &winit::event::Event<'_, T>) ->
use winit::event::{DeviceEvent, Event, StartCause};

match event {
Event::OpenURL(_) => "Event::OpenURL",
Event::Suspended => "Event::Suspended",
Event::Resumed => "Event::Resumed",
Event::MainEventsCleared => "Event::MainEventsCleared",
Expand Down

0 comments on commit e880c5b

Please sign in to comment.