diff --git a/main.js b/main.js index 3fdb5b7..cfaef91 100644 --- a/main.js +++ b/main.js @@ -1,6 +1,7 @@ const electron = require('electron') // Module to control application life. const { app, BrowserWindow } = electron +// IF you want to enable automatic update uncomment the line below const updater = require('./updater') // Keep window state @@ -84,15 +85,12 @@ if (process.platform === 'darwin') { const menu = electron.Menu.buildFromTemplate(template) - - function createWindow() { let winState = windowStateKeeper({ defaultWidth: 900, defaultHeight: 600 }) - // electron.Menu.setApplicationMenu(menu) electron.Menu.setApplicationMenu(null) // Create the browser window. @@ -137,6 +135,7 @@ function createWindow() { require('electron').shell.openExternal(url); }); + // IF you want to enable automatic update uncomment the line below setTimeout(updater.check, 2000); } diff --git a/renderer/progress.html b/renderer/progress.html index 433f094..0868974 100644 --- a/renderer/progress.html +++ b/renderer/progress.html @@ -5,6 +5,13 @@