mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-4235 - Add missing check for betaAutoUpdateChannelEnabled (#1977)
This commit is contained in:
parent
f4585e0173
commit
0be4d0e2fb
@ -228,10 +228,12 @@ export class AutoUpdate {
|
|||||||
};
|
};
|
||||||
|
|
||||||
private setAutoUpdateChannel = async (): Promise<void> => {
|
private setAutoUpdateChannel = async (): Promise<void> => {
|
||||||
const { autoUpdateChannel, installVariant } = config.getConfigFields([
|
const { autoUpdateChannel, installVariant, betaAutoUpdateChannelEnabled } =
|
||||||
'autoUpdateChannel',
|
config.getConfigFields([
|
||||||
'installVariant',
|
'autoUpdateChannel',
|
||||||
]);
|
'installVariant',
|
||||||
|
'betaAutoUpdateChannelEnabled',
|
||||||
|
]);
|
||||||
|
|
||||||
const cc = config.getFilteredCloudConfigFields([
|
const cc = config.getFilteredCloudConfigFields([
|
||||||
'betaAutoUpdateChannelEnabled',
|
'betaAutoUpdateChannelEnabled',
|
||||||
@ -241,7 +243,9 @@ export class AutoUpdate {
|
|||||||
? ChannelConfigLocation.ACP
|
? ChannelConfigLocation.ACP
|
||||||
: ChannelConfigLocation.LOCALFILE;
|
: ChannelConfigLocation.LOCALFILE;
|
||||||
|
|
||||||
this.finalAutoUpdateChannel = autoUpdateChannel;
|
this.finalAutoUpdateChannel = betaAutoUpdateChannelEnabled
|
||||||
|
? 'beta'
|
||||||
|
: autoUpdateChannel;
|
||||||
this.installVariant = installVariant;
|
this.installVariant = installVariant;
|
||||||
if (isWindowsOS) {
|
if (isWindowsOS) {
|
||||||
if (this.shouldRetrieveRegistry) {
|
if (this.shouldRetrieveRegistry) {
|
||||||
|
Loading…
Reference in New Issue
Block a user