mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-01-07 06:33:58 -06:00
Merge pull request #218 from KiranNiranjan/ELECTRON-182
Electron-182 (Fixes an error in notification configuration window)
This commit is contained in:
commit
d1257ff091
@ -48,12 +48,15 @@ function updateScreens() {
|
|||||||
screens = electron.screen.getAllDisplays();
|
screens = electron.screen.getAllDisplays();
|
||||||
|
|
||||||
// Notifying renderer when a display is added/removed
|
// Notifying renderer when a display is added/removed
|
||||||
if (configurationWindow && screens && screens.length >= 0) {
|
if (configurationWindow) {
|
||||||
configurationWindow.webContents.send('screens', screens);
|
|
||||||
}
|
|
||||||
// Event that updates the DOM elements
|
// Event that updates the DOM elements
|
||||||
// notification position checkbox and monitor selection drop-down
|
// notification position checkbox and monitor selection drop-down
|
||||||
configurationWindow.webContents.send('notificationSettings', {position: position, display: display});
|
configurationWindow.webContents.send('notificationSettings', {position: position, display: display});
|
||||||
|
|
||||||
|
if (screens && screens.length >= 0) {
|
||||||
|
configurationWindow.webContents.send('screens', screens);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user