From ca30acf8fb101b3ac3852e7ef0be0130b9810432 Mon Sep 17 00:00:00 2001 From: mstar Date: Wed, 19 Mar 2025 15:15:38 +0100 Subject: [PATCH] Add Windows guard --- rust/src/portals/screencast.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/src/portals/screencast.rs b/rust/src/portals/screencast.rs index 9aa6a6e..912e0b6 100644 --- a/rust/src/portals/screencast.rs +++ b/rust/src/portals/screencast.rs @@ -24,6 +24,8 @@ struct Runner; #[godot_api] impl INode for ScreencastRunner { fn init(base: Base) -> Self { + #[cfg(not(target_os = "linux"))] + panic!("Not supported on Windows"); let (sender, receiver) = channel::unbounded(); Self { base,