config-files: Move all the configuration files into config folder. (#508)

This commit moves all the configuration(.json) files into a config folder
if the config folder doesn't already exist. It also updates the places
where these files are being accessed with the new address.
This will help us zip the folder easily in the future.
This commit is contained in:
Abhigyan Khaund
2018-07-04 14:46:13 +05:30
committed by Akash Nimare
parent eeb0b4a666
commit df35ffc3b0
7 changed files with 48 additions and 6 deletions

View File

@@ -54,7 +54,8 @@ function createMainWindow() {
// Load the previous state with fallback to defaults
const mainWindowState = windowStateKeeper({
defaultWidth: 1100,
defaultHeight: 720
defaultHeight: 720,
path: `${app.getPath('userData')}/config`
});
// Let's keep the window position global so that we can access it in other process