collab_ui: Re-enable deafening and screen share on Mac (#13040)

Fixes regression from https://github.com/zed-industries/zed/pull/12994
Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-06-14 15:47:53 +02:00 committed by GitHub
parent 55ba80ddd1
commit 902d7150fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -276,7 +276,7 @@ impl Render for CollabTitlebarItem {
.selected_style(ButtonStyle::Tinted(TintColor::Negative))
.icon_size(IconSize::Small)
.selected(is_deafened)
.disabled(cfg!(not(target_os = "linux")))
.disabled(!platform_supported)
.tooltip(move |cx| {
if !platform_supported {
Tooltip::text("Cannot share microphone", cx)
@ -299,7 +299,7 @@ impl Render for CollabTitlebarItem {
.style(ButtonStyle::Subtle)
.icon_size(IconSize::Small)
.selected(is_screen_sharing)
.disabled(cfg!(not(target_os = "linux")))
.disabled(!platform_supported)
.selected_style(ButtonStyle::Tinted(TintColor::Accent))
.tooltip(move |cx| {
Tooltip::text(