SDA-4372 - Always retrieve latest registry channel (#1982)

This commit is contained in:
Kiran Niranjan
2023-10-17 14:16:55 +05:30
committed by GitHub
parent 3ecb3da1f0
commit 439bdb6496

View File

@@ -35,7 +35,6 @@ export class AutoUpdate {
private autoUpdateTrigger: AutoUpdateTrigger | undefined = undefined; private autoUpdateTrigger: AutoUpdateTrigger | undefined = undefined;
private finalAutoUpdateChannel: string | undefined = undefined; private finalAutoUpdateChannel: string | undefined = undefined;
private installVariant: string | undefined = undefined; private installVariant: string | undefined = undefined;
private shouldRetrieveRegistry: boolean = true;
private channelConfigLocation: ChannelConfigLocation = private channelConfigLocation: ChannelConfigLocation =
ChannelConfigLocation.LOCALFILE; ChannelConfigLocation.LOCALFILE;
@@ -248,10 +247,7 @@ export class AutoUpdate {
: autoUpdateChannel; : autoUpdateChannel;
this.installVariant = installVariant; this.installVariant = installVariant;
if (isWindowsOS) { if (isWindowsOS) {
if (this.shouldRetrieveRegistry) { await retrieveWindowsRegistry();
await retrieveWindowsRegistry();
this.shouldRetrieveRegistry = false;
}
const registryAutoUpdate = RegistryStore.getRegistry(); const registryAutoUpdate = RegistryStore.getRegistry();
const identifiedChannelFromRegistry = [ const identifiedChannelFromRegistry = [
EChannelRegistry.BETA, EChannelRegistry.BETA,