Only enable background throttling in development
This commit is contained in:
parent
d6a81331bb
commit
fe98f90d70
1 changed files with 4 additions and 4 deletions
|
@ -446,10 +446,10 @@ async function createWindow() {
|
||||||
),
|
),
|
||||||
nativeWindowOpen: true,
|
nativeWindowOpen: true,
|
||||||
spellcheck: await getSpellCheckSetting(),
|
spellcheck: await getSpellCheckSetting(),
|
||||||
// We are evaluating background throttling in prerelease versions. If we decide to
|
// We are evaluating background throttling in development. If we decide to
|
||||||
// move forward, we can remove this line (as `backgroundThrottling` is true by
|
// move forward, we can remove this line (as `backgroundThrottling` is true by
|
||||||
// default).
|
// default).
|
||||||
backgroundThrottling: !isProduction(app.getVersion()),
|
backgroundThrottling: development,
|
||||||
enablePreferredSizeMode: true,
|
enablePreferredSizeMode: true,
|
||||||
},
|
},
|
||||||
icon: windowIcon,
|
icon: windowIcon,
|
||||||
|
@ -737,9 +737,9 @@ ipc.on('set-is-call-active', (_event, isCallActive) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We are evaluating background throttling in prerelease versions. If we decide to move
|
// We are evaluating background throttling in development. If we decide to move
|
||||||
// forward, we can remove this check.
|
// forward, we can remove this check.
|
||||||
if (isProduction(app.getVersion())) {
|
if (!development) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue