mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-2302 only start main window one time
This commit is contained in:
parent
81c67a1e08
commit
9fa09eee58
@ -69,9 +69,15 @@ if (!isDevEnv) {
|
||||
/**
|
||||
* Main function that init the application
|
||||
*/
|
||||
let oneStart = false;
|
||||
const startApplication = async () => {
|
||||
await app.whenReady();
|
||||
logger.info(`main: app is ready, performing initial checks`);
|
||||
if (oneStart) {
|
||||
return;
|
||||
}
|
||||
|
||||
logger.info('main: app is ready, performing initial checks oneStart: ' + oneStart);
|
||||
oneStart = true;
|
||||
createAppCacheFile();
|
||||
if (config.isFirstTimeLaunch()) {
|
||||
logger.info(`main: This is a first time launch! will update config and handle auto launch`);
|
||||
|
Loading…
Reference in New Issue
Block a user