SDA-3482 - Fix command line argument --window-size (#1301)

This commit is contained in:
Kiran Niranjan 2021-11-30 07:46:34 +05:30 committed by GitHub
parent bfcaae5e57
commit e477ee61b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,6 +311,11 @@ export class WindowHandler {
if (this.config.mainWinPos) {
this.config.mainWinPos.width = Number(sizes[0]);
this.config.mainWinPos.height = Number(sizes[1]);
} else {
this.config.mainWinPos = {
width: Number(sizes[0]),
height: Number(sizes[1]),
};
}
}