SDA-3476 - Add a command line flag for starting SDA maximized (#1298)

This commit is contained in:
Kiran Niranjan 2021-11-23 13:51:07 +05:30 committed by GitHub
parent dd84f6ae3e
commit dc77a61d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,9 +364,20 @@ export class WindowHandler {
}
}
if (isMaximized) {
// start the application maximized - for automation tests
const isMaximizedFlag = getCommandLineArgs(
process.argv,
'--maximized',
true,
);
if (isMaximized || isMaximizedFlag) {
this.mainWindow.maximize();
logger.info(`window-handler: window is maximized!`);
logger.info(
`window-handler: window is maximized!`,
isMaximized,
isMaximizedFlag,
);
}
if (isFullScreen) {