refactor(ScreenShare): pw-pulse warning

This commit is contained in:
Curve 2024-05-31 17:59:02 +02:00
parent 7405b6e127
commit 92694df848
No known key found for this signature in database
GPG key ID: 460F6C466BD35813

View file

@ -567,6 +567,7 @@ function AudioSourcePickerLinux({
{hasPipewirePulse || ignorePulseWarning ? ( {hasPipewirePulse || ignorePulseWarning ? (
allSources && ( allSources && (
<>
<Select <Select
options={allSources options={allSources
.map(target => mapToAudioItem(target, granularSelect)) .map(target => mapToAudioItem(target, granularSelect))
@ -582,6 +583,15 @@ function AudioSourcePickerLinux({
serialize={String} serialize={String}
popoutPosition="top" popoutPosition="top"
/> />
<Button
color={Button.Colors.TRANSPARENT}
onClick={openSettings}
className="vcd-screen-picker-settings-button"
>
Open Audio Settings
</Button>
</>
) )
) : ( ) : (
<Text variant="text-sm/normal"> <Text variant="text-sm/normal">
@ -594,20 +604,10 @@ function AudioSourcePickerLinux({
</a>{" "} </a>{" "}
on how to switch to pipewire. <br /> on how to switch to pipewire. <br />
You can still continue, however, please{" "} You can still continue, however, please{" "}
<b>beware that you can only share audio of apps that are running under pipewire</b>. <b>beware that you can only share audio of apps that are running under pipewire</b>.{" "}
<br /> <a onClick={() => setIgnorePulseWarning(true)}>I know what I'm doing!</a>
<br />
<a onClick={() => setIgnorePulseWarning(true)}>I know what I'm doing</a>
</Text> </Text>
)} )}
<Button
color={Button.Colors.TRANSPARENT}
onClick={openSettings}
className="vcd-screen-picker-settings-button"
>
Open Audio Settings
</Button>
</div> </div>
); );
} }