mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
SDA-4275 Persist user config on first time launch and on pod URL update (#1943)
This commit is contained in:
parent
0d37f8e323
commit
9dce2d8a70
@ -429,6 +429,7 @@ ipcMain.on(
|
||||
url: arg.newPodUrl,
|
||||
});
|
||||
}
|
||||
config.writeUserConfig();
|
||||
const urlFromCmd = getCommandLineArgs(process.argv, '--url=', false);
|
||||
const { url: userConfigURL } = config.getUserConfigFields(['url']);
|
||||
const { url: globalConfigURL } = config.getGlobalConfigFields(['url']);
|
||||
|
@ -83,7 +83,8 @@ const startApplication = async () => {
|
||||
await config.initializeUserConfig();
|
||||
await config.readUserConfig();
|
||||
await config.checkFirstTimeLaunch();
|
||||
if (config.isFirstTimeLaunch()) {
|
||||
const isFirstTimeLaunch = config.isFirstTimeLaunch();
|
||||
if (isFirstTimeLaunch) {
|
||||
logger.info(
|
||||
`main: This is a first time launch! will update config and handle auto launch`,
|
||||
);
|
||||
@ -91,6 +92,7 @@ const startApplication = async () => {
|
||||
if (!isLinux) {
|
||||
await autoLaunchInstance.handleAutoLaunch();
|
||||
}
|
||||
config.writeUserConfig();
|
||||
}
|
||||
await app.whenReady();
|
||||
if (oneStart) {
|
||||
|
Loading…
Reference in New Issue
Block a user