Skip to content

Commit

Permalink
Merge pull request #1144 from whizark/store-window-size-on-linux
Browse files Browse the repository at this point in the history
store correct window size on Linux
  • Loading branch information
kazup01 authored Nov 27, 2017
2 parents 3e7f4a4 + 4604373 commit b48b8f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/main-window.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ if (process.platform !== 'linux' || process.env.DESKTOP_SESSION === 'cinnamon')
mainWindow.removeAllListeners()
})
} else {
mainWindow.on('close', function () {
storeWindowSize()
})

app.on('window-all-closed', function () {
quitApp()
app.quit()
})
}

Expand Down

0 comments on commit b48b8f3

Please sign in to comment.