Force maximized state on startup if window previously maximized
This commit is contained in:
parent
3215be7849
commit
368d5b7e4b
1 changed files with 3 additions and 0 deletions
3
main.js
3
main.js
|
@ -277,6 +277,9 @@ function createWindow() {
|
||||||
|
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
mainWindow = new BrowserWindow(windowOptions);
|
mainWindow = new BrowserWindow(windowOptions);
|
||||||
|
if (windowOptions.maximized) {
|
||||||
|
mainWindow.maximize();
|
||||||
|
}
|
||||||
|
|
||||||
function captureAndSaveWindowStats() {
|
function captureAndSaveWindowStats() {
|
||||||
if (!mainWindow) {
|
if (!mainWindow) {
|
||||||
|
|
Loading…
Reference in a new issue