SDA-3656 - Close placeholder window only on Windows (#1429)

This commit is contained in:
Kiran Niranjan 2022-05-30 11:46:32 +05:30 committed by GitHub
parent d887bbddf2
commit 266e7a3aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1502,6 +1502,15 @@ export class WindowHandler {
ipcMain.removeListener('screen-source-select', screenSourceSelect);
this.removeWindow(opts.winKey);
this.screenPickerWindow = null;
if (isWindowsOS) {
if (
this.screenPickerPlaceholderWindow &&
windowExists(this.screenPickerPlaceholderWindow)
) {
this.screenPickerPlaceholderWindow.close();
this.screenPickerPlaceholderWindow = null;
}
}
});
}