From e1667b76b7db10905ea974e73610681124b70227 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 10 Jan 2024 12:04:58 +0100 Subject: [PATCH] Match on the embark-added `OpenURL` event --- crates/egui-winit/Cargo.toml | 2 +- crates/egui-winit/src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/egui-winit/Cargo.toml b/crates/egui-winit/Cargo.toml index 4b029e1f02a2..f63522ae2525 100644 --- a/crates/egui-winit/Cargo.toml +++ b/crates/egui-winit/Cargo.toml @@ -55,7 +55,7 @@ wayland = ["winit/wayland", "bytemuck"] x11 = ["winit/x11", "bytemuck"] [dependencies] -egui = { version = "0.25.0", path = "../egui", default-features = false, features = [ +egui = { version = "0.25.0", default-features = false, features = [ "log", ] } log = { version = "0.4", features = ["std"] } diff --git a/crates/egui-winit/src/lib.rs b/crates/egui-winit/src/lib.rs index c891765d4288..d3bb95493258 100644 --- a/crates/egui-winit/src/lib.rs +++ b/crates/egui-winit/src/lib.rs @@ -1636,6 +1636,7 @@ pub fn short_generic_event_description(event: &winit::event::Event) -> &'s match event { Event::AboutToWait => "Event::AboutToWait", Event::LoopExiting => "Event::LoopExiting", + Event::OpenURL{ .. } => "Event::OpenURL", Event::Suspended => "Event::Suspended", Event::Resumed => "Event::Resumed", Event::MemoryWarning => "Event::MemoryWarning",