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,