mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Check that source is not null before calling the screen frame application (#828)
This commit is contained in:
committed by
Vishwas Shashidhar
parent
c5445b3f8f
commit
50dbde9f35
@@ -576,6 +576,7 @@ export class WindowHandler {
|
|||||||
this.addWindow(opts.winKey, this.screenPickerWindow);
|
this.addWindow(opts.winKey, this.screenPickerWindow);
|
||||||
});
|
});
|
||||||
ipcMain.once('screen-source-selected', (_event, source) => {
|
ipcMain.once('screen-source-selected', (_event, source) => {
|
||||||
|
if (source != null) {
|
||||||
if (isWindowsOS) {
|
if (isWindowsOS) {
|
||||||
logger.info(`window-handler: screen-source-selected`, source, id);
|
logger.info(`window-handler: screen-source-selected`, source, id);
|
||||||
const type = source.id.split(':')[0];
|
const type = source.id.split(':')[0];
|
||||||
@@ -584,6 +585,7 @@ export class WindowHandler {
|
|||||||
this.execCmd(this.screenShareIndicatorFrameUtil, [ hwnd ]);
|
this.execCmd(this.screenShareIndicatorFrameUtil, [ hwnd ]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
window.send('start-share' + id, source);
|
window.send('start-share' + id, source);
|
||||||
if (this.screenPickerWindow && windowExists(this.screenPickerWindow)) {
|
if (this.screenPickerWindow && windowExists(this.screenPickerWindow)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user