Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(desktop): stop clearing mic when device list changes

Richie McIlroyb0970f3a819b
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
index 165e7544e..be1ec9ee1 100644
--- a/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx
@@ -2133,25 +2133,6 @@ function Page() {
setOpenMicrophoneSettingsWhenReady(false);
});
- createEffect(() => {
- if (!enableDeviceQueries() || devices.isPending || devices.isLoading)
- return;
- const permissions = currentPermissions();
- if (
- permissions?.microphone !== "granted" &&
- permissions?.microphone !== "notNeeded"
- ) {
- return;
- }
- const micList = devices.microphones;
- if (
- rawOptions.micName &&
- !micList.find((m) => m.name === rawOptions.micName)
- ) {
- setOptions("micName", null);
- }
- });
-
const options = {
screen: () => {
let screen: CaptureDisplay | undefined;