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