Fix auto-update dialog now that locale-loading has been changed

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-07-25 11:40:23 -07:00
parent b62fdd1b36
commit 8243f25e5a
No known key found for this signature in database
GPG key ID: A4931C09644C654B
2 changed files with 19 additions and 14 deletions

10
main.js
View file

@ -44,10 +44,6 @@ const loadLocale = require('./app/locale').load;
let locale;
function createWindow () {
if (!locale) {
locale = loadLocale();
}
const windowOptions = Object.assign({
width: 800,
height: 610,
@ -159,7 +155,11 @@ function createWindow () {
app.on('ready', function() {
console.log('app ready');
autoUpdate.initialize();
if (!locale) {
locale = loadLocale();
}
autoUpdate.initialize(locale.messages);
createWindow();