mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-3875 - Skip welcome screen for auto update (#1497)
This commit is contained in:
@@ -95,8 +95,9 @@ export class AutoUpdate {
|
||||
if (isMac) {
|
||||
windowHandler.setIsAutoUpdating(true);
|
||||
}
|
||||
setImmediate(() => {
|
||||
setImmediate(async () => {
|
||||
if (this.autoUpdater) {
|
||||
await config.updateUserConfig({ startedAfterAutoUpdate: true });
|
||||
if (isMac) {
|
||||
config.backupGlobalConfig();
|
||||
}
|
||||
|
||||
@@ -57,6 +57,7 @@ export interface IConfig {
|
||||
locale?: string;
|
||||
installVariant?: string;
|
||||
bootCount?: number;
|
||||
startedAfterAutoUpdate?: boolean;
|
||||
}
|
||||
|
||||
export interface IGlobalConfig {
|
||||
@@ -574,6 +575,18 @@ class Config {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
this.userConfig &&
|
||||
(this.userConfig as IConfig).startedAfterAutoUpdate
|
||||
) {
|
||||
await this.updateUserConfig({
|
||||
installVariant: this.installVariant,
|
||||
startedAfterAutoUpdate: false,
|
||||
});
|
||||
this.isFirstTime = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
installVariant &&
|
||||
typeof installVariant === 'string' &&
|
||||
|
||||
Reference in New Issue
Block a user