mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
This commit is contained in:
parent
6d6818548a
commit
e543476c38
@ -340,7 +340,7 @@ describe('main api handler', () => {
|
||||
reason: 'notification',
|
||||
windowName: 'notification',
|
||||
};
|
||||
const expectedValue = ['notification'];
|
||||
const expectedValue = ['notification', false];
|
||||
ipcMain.send(apiName.symphonyApi, value);
|
||||
expect(spy).toBeCalledWith(...expectedValue);
|
||||
});
|
||||
|
@ -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);
|
||||
activate(arg.windowName, false);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -187,9 +187,7 @@ export const activate = (
|
||||
// Bring the window to the top without focusing
|
||||
// Flash task bar icon in Windows for windows
|
||||
if (!shouldFocus) {
|
||||
return isMac || isLinux
|
||||
? window.showInactive()
|
||||
: window.flashFrame(true);
|
||||
return isMac || isLinux ? window.show() : window.flashFrame(true);
|
||||
}
|
||||
|
||||
// Note: On window just focusing will preserve window snapped state
|
||||
|
Loading…
Reference in New Issue
Block a user