mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -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();
|
this.mainWindow.maximize();
|
||||||
logger.info(`window-handler: window is maximized!`);
|
logger.info(
|
||||||
|
`window-handler: window is maximized!`,
|
||||||
|
isMaximized,
|
||||||
|
isMaximizedFlag,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isFullScreen) {
|
if (isFullScreen) {
|
||||||
|
Loading…
Reference in New Issue
Block a user