SDA-4604 Bring to the front feature fix by calling show method (#2174)

* SDA-4604 Bring to the front feature fix by calling show method

* Upgrade electron@31.2.1
This commit is contained in:
Salah Benmoussati 2024-07-17 09:57:22 +02:00 committed by GitHub
parent defcd1a90a
commit 6d6818548a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -178,7 +178,7 @@
"builder-util-runtime": "^9.0.3",
"cross-env": "7.0.3",
"del": "3.0.0",
"electron": "31.2.0",
"electron": "31.2.1",
"electron-builder": "^24.13.2",
"electron-devtools-installer": "^3.2.0",
"electron-icon-maker": "0.0.5",

View File

@ -340,7 +340,7 @@ describe('main api handler', () => {
reason: 'notification',
windowName: 'notification',
};
const expectedValue = ['notification', false];
const expectedValue = ['notification'];
ipcMain.send(apiName.symphonyApi, value);
expect(spy).toBeCalledWith(...expectedValue);
});

View File

@ -207,7 +207,7 @@ ipcMain.on(
if (typeof arg.reason === 'string' && arg.reason === 'notification') {
const { bringToFront } = config.getConfigFields(['bringToFront']);
if (bringToFront === CloudConfigDataTypes.ENABLED) {
activate(arg.windowName, false);
activate(arg.windowName);
}
}
break;