Enable background throttling for everyone
This commit is contained in:
parent
be99c7dfdf
commit
801dea2969
1 changed files with 1 additions and 7 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue