Visual bug fixes for v1.29
This commit is contained in:
parent
1a3c41fc46
commit
0876bf7ae7
14 changed files with 124 additions and 34 deletions
7
main.js
7
main.js
|
@ -243,9 +243,6 @@ function createWindow() {
|
|||
if (!_.isNumber(windowOptions.height) || windowOptions.height < MIN_HEIGHT) {
|
||||
windowOptions.height = DEFAULT_HEIGHT;
|
||||
}
|
||||
if (!_.isBoolean(windowOptions.maximized)) {
|
||||
delete windowOptions.maximized;
|
||||
}
|
||||
if (!_.isBoolean(windowOptions.autoHideMenuBar)) {
|
||||
delete windowOptions.autoHideMenuBar;
|
||||
}
|
||||
|
@ -270,10 +267,10 @@ function createWindow() {
|
|||
|
||||
// Create the browser window.
|
||||
mainWindow = new BrowserWindow(windowOptions);
|
||||
if (windowOptions.maximized) {
|
||||
if (windowConfig && windowConfig.maximized) {
|
||||
mainWindow.maximize();
|
||||
}
|
||||
if (windowOptions.fullscreen) {
|
||||
if (windowConfig && windowConfig.fullscreen) {
|
||||
mainWindow.setFullScreen(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue