Skip to content

Commit

Permalink
Update Electon & Resize Bug
Browse files Browse the repository at this point in the history
Electron to V 3.0.3
Electron-gh-release to V2.0.4
Fix Bug restore windows size
  • Loading branch information
crakoucas committed Oct 11, 2018
1 parent 29ed26a commit a331d82
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dev-scripts/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function startServer () {
}

function startElectron () {
spawn(electron, ['--hot', './index.js'])
spawn(electron, ['--hot', './index.js'], { stdio: 'inherit' })
.on('close', () => {
server.close()
})
Expand Down
8 changes: 7 additions & 1 deletion lib/main-window.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ const config = new Config()
const _ = require('lodash')

var showMenu = process.platform !== 'win32'
const windowSize = config.get('windowsize') || { x: null, y: null, width: 1080, height: 720 }
const windowSize = config.get('windowsize') || {
x: null,
y: null,
width: 1080,
height: 720
}

const mainWindow = new BrowserWindow({
x: windowSize.x,
y: windowSize.y,
width: windowSize.width,
height: windowSize.height,
useContentSize: true,
minWidth: 500,
minHeight: 320,
autoHideMenuBar: showMenu,
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dev": "node dev-scripts/dev.js"
},
"config": {
"electron-version": "2.0.9"
"electron-version": "3.0.3"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -56,7 +56,7 @@
"codemirror": "^5.39.0",
"codemirror-mode-elixir": "^1.1.1",
"electron-config": "^1.0.0",
"electron-gh-releases": "^2.0.2",
"electron-gh-releases": "^2.0.4",
"escape-string-regexp": "^1.0.5",
"file-uri-to-path": "^1.0.0",
"file-url": "^2.0.2",
Expand Down Expand Up @@ -121,7 +121,7 @@
"css-loader": "^0.19.0",
"devtron": "^1.1.0",
"dom-storage": "^2.0.2",
"electron": "2.0.9",
"electron": "3.0.3",
"electron-packager": "^12.0.0",
"eslint": "^3.13.1",
"eslint-config-standard": "^6.2.1",
Expand Down

0 comments on commit a331d82

Please sign in to comment.