Skip to content

Commit 8ae191f

Browse files
committed
fixes
1 parent 0e81ec3 commit 8ae191f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/renderer/components/ScreenSharePicker.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,8 @@ export function openScreenSharePicker(screens: Source[], skipPicker: boolean) {
115115
modalProps={props}
116116
submit={async v => {
117117
didSubmit = true;
118-
if (v.audioSource && v.audioSource !== "None") {
119-
patchDisplayMedia({
120-
audioId: v.audioDevice,
121-
venmic: !!v.audioSource && v.audioSource !== "None",
122-
videoId: v.cameraId
123-
});
124118

119+
if (v.audioSource && v.audioSource !== "None") {
125120
if (!v.audioDevice && v.audioSource && v.audioSource !== "None") {
126121
if (v.audioSource === "Entire System") {
127122
await VesktopNative.virtmic.startSystem(v.workaround);
@@ -130,7 +125,11 @@ export function openScreenSharePicker(screens: Source[], skipPicker: boolean) {
130125
}
131126
}
132127

133-
patchAudioWithDevice(v.audioDevice);
128+
patchDisplayMedia({
129+
audioId: v.audioDevice,
130+
venmic: !!v.audioSource && v.audioSource !== "None",
131+
videoId: v.cameraId
132+
});
134133

135134
resolve(v);
136135
}
@@ -328,7 +327,6 @@ function AudioSourceAnyDevice({
328327
return (
329328
<section>
330329
<Forms.FormTitle>Audio</Forms.FormTitle>
331-
{loading && <Forms.FormTitle>Loading audio devices...</Forms.FormTitle>}
332330

333331
{sources.length > 0 && (
334332
<Select

0 commit comments

Comments
 (0)