Enable background throttling for everyone

This commit is contained in:
Fedor Indutny 2023-01-10 09:48:17 -08:00 committed by GitHub
parent be99c7dfdf
commit 801dea2969
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,8 +136,6 @@ const development =
getEnvironment() === Environment.Development ||
getEnvironment() === Environment.Staging;
const isThrottlingEnabled = development || !isProduction(app.getVersion());
const enableCI = config.get<boolean>('enableCI');
const forcePreloadBundle = config.get<boolean>('forcePreloadBundle');
@ -685,7 +683,7 @@ async function createWindow() {
: '../ts/windows/main/preload.js'
),
spellcheck: await getSpellCheckSetting(),
backgroundThrottling: isThrottlingEnabled,
backgroundThrottling: true,
enablePreferredSizeMode: true,
disableBlinkFeatures: 'Accelerated2dCanvas,AcceleratedSmallCanvases',
},
@ -998,10 +996,6 @@ ipc.on('set-is-call-active', (_event, isCallActive) => {
return;
}
if (!isThrottlingEnabled) {
return;
}
let backgroundThrottling: boolean;
if (isCallActive) {
getLogger().info('Background throttling disabled because a call is active');