refactor(ScreenShare): pw-pulse warning
This commit is contained in:
parent
7405b6e127
commit
92694df848
1 changed files with 27 additions and 27 deletions
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue