diff --git a/crates/gpui/src/platform/windows/platform.rs b/crates/gpui/src/platform/windows/platform.rs index 4644650425..01f8a8eaa1 100644 --- a/crates/gpui/src/platform/windows/platform.rs +++ b/crates/gpui/src/platform/windows/platform.rs @@ -399,9 +399,7 @@ impl Platform for WindowsPlatform { fn screen_capture_sources( &self, ) -> oneshot::Receiver>>> { - let (mut tx, rx) = oneshot::channel(); - tx.send(Err(anyhow!("screen capture not implemented"))).ok(); - rx + scap_screen_sources() } fn active_window(&self) -> Option { diff --git a/crates/title_bar/src/collab.rs b/crates/title_bar/src/collab.rs index 008e064769..eda63eb41e 100644 --- a/crates/title_bar/src/collab.rs +++ b/crates/title_bar/src/collab.rs @@ -2,6 +2,7 @@ use std::sync::Arc; use call::{ActiveCall, ParticipantLocation, Room}; use client::{proto::PeerId, User}; +use feature_flags::FeatureFlagAppExt; use gpui::{actions, App, Task, Window}; use gpui::{canvas, point, AnyElement, Hsla, IntoElement, MouseButton, Path, Styled}; use rpc::proto::{self}; @@ -301,8 +302,8 @@ impl TitleBar { let can_share_projects = room.can_share_projects(); let screen_sharing_supported = match self.platform_style { PlatformStyle::Mac | PlatformStyle::Linux => true, - // todo! - PlatformStyle::Windows => false, + // Windows screen sharing not yet tested. + PlatformStyle::Windows => cx.is_staff(), }; let mut children = Vec::new();