mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-26 02:40:24 -06:00
SDA-3476 - Add a command line flag for starting SDA maximized (#1298)
This commit is contained in:
parent
dd84f6ae3e
commit
dc77a61d4a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user