mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-26 02:40:24 -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,
|
url: arg.newPodUrl,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
config.writeUserConfig();
|
||||||
const urlFromCmd = getCommandLineArgs(process.argv, '--url=', false);
|
const urlFromCmd = getCommandLineArgs(process.argv, '--url=', false);
|
||||||
const { url: userConfigURL } = config.getUserConfigFields(['url']);
|
const { url: userConfigURL } = config.getUserConfigFields(['url']);
|
||||||
const { url: globalConfigURL } = config.getGlobalConfigFields(['url']);
|
const { url: globalConfigURL } = config.getGlobalConfigFields(['url']);
|
||||||
|
@ -83,7 +83,8 @@ const startApplication = async () => {
|
|||||||
await config.initializeUserConfig();
|
await config.initializeUserConfig();
|
||||||
await config.readUserConfig();
|
await config.readUserConfig();
|
||||||
await config.checkFirstTimeLaunch();
|
await config.checkFirstTimeLaunch();
|
||||||
if (config.isFirstTimeLaunch()) {
|
const isFirstTimeLaunch = config.isFirstTimeLaunch();
|
||||||
|
if (isFirstTimeLaunch) {
|
||||||
logger.info(
|
logger.info(
|
||||||
`main: This is a first time launch! will update config and handle auto launch`,
|
`main: This is a first time launch! will update config and handle auto launch`,
|
||||||
);
|
);
|
||||||
@ -91,6 +92,7 @@ const startApplication = async () => {
|
|||||||
if (!isLinux) {
|
if (!isLinux) {
|
||||||
await autoLaunchInstance.handleAutoLaunch();
|
await autoLaunchInstance.handleAutoLaunch();
|
||||||
}
|
}
|
||||||
|
config.writeUserConfig();
|
||||||
}
|
}
|
||||||
await app.whenReady();
|
await app.whenReady();
|
||||||
if (oneStart) {
|
if (oneStart) {
|
||||||
|
Loading…
Reference in New Issue
Block a user