Revert "Enable useSystemPicker in non-production"

This commit is contained in:
Fedor Indutny 2024-09-24 09:26:31 -07:00 committed by GitHub
parent 2aa11cf816
commit 35ecd36bfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 8 deletions

View file

@ -2,14 +2,13 @@
// SPDX-License-Identifier: AGPL-3.0-only
import type { Session, DesktopCapturerSource, IpcMainEvent } from 'electron';
import { app, desktopCapturer, ipcMain } from 'electron';
import { desktopCapturer, ipcMain } from 'electron';
import { v4 as generateUuid } from 'uuid';
import OS from '../ts/util/os/osMain';
import type { LoggerType } from '../ts/types/Logging';
import { strictAssert } from '../ts/util/assert';
import { type IpcResponseType } from '../ts/util/desktopCapturer';
import { isProduction } from '../ts/util/version';
const SPELL_CHECKER_DICTIONARY_DOWNLOAD_URL = `https://updates.signal.org/desktop/hunspell_dictionaries/${process.versions.electron}/`;
@ -68,6 +67,6 @@ export function updateDefaultSession(
getLogger().error('Failed to get desktopCapturer sources', error);
}
},
{ useSystemPicker: !isProduction(app.getVersion()) }
{ useSystemPicker: false }
);
}