Enable screen share on windows (staff only for now as untested)
This commit is contained in:
@@ -399,9 +399,7 @@ impl Platform for WindowsPlatform {
|
||||
fn screen_capture_sources(
|
||||
&self,
|
||||
) -> oneshot::Receiver<Result<Vec<Box<dyn ScreenCaptureSource>>>> {
|
||||
let (mut tx, rx) = oneshot::channel();
|
||||
tx.send(Err(anyhow!("screen capture not implemented"))).ok();
|
||||
rx
|
||||
scap_screen_sources()
|
||||
}
|
||||
|
||||
fn active_window(&self) -> Option<AnyWindowHandle> {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user