mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-4689 - Fix condition for one notification (#2212)
This commit is contained in:
@@ -373,13 +373,13 @@ export default class NotificationHandler {
|
|||||||
startPos: number,
|
startPos: number,
|
||||||
activeNotifications: BrowserWindow[],
|
activeNotifications: BrowserWindow[],
|
||||||
): void {
|
): void {
|
||||||
if (startPos >= activeNotifications.length || startPos === -1) {
|
if (activeNotifications.length === 0 || startPos === -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adjust startPos for lower corners
|
// Adjust startPos for lower corners
|
||||||
if (['lower-right', 'lower-left'].includes(this.settings.startCorner)) {
|
if (['lower-right', 'lower-left'].includes(this.settings.startCorner)) {
|
||||||
startPos -= 1;
|
startPos = Math.max(0, startPos - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
const notificationPosArray: number[] = [];
|
const notificationPosArray: number[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user