From acbd405f5162db88603b83712ca75fb005bb25b2 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 18 May 2022 20:31:00 -0500 Subject: [PATCH] Add dummy resource to avoid panics under non-Windows platforms. --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 62defe4..9cf71e1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,6 +28,8 @@ fn setup(mut commands: Commands) { commands.insert_resource(scheme); } } + #[cfg(not(windows))] + commands.insert_resource(DefaultScheme()); } #[allow(unused_variables)]