Skip to content
Permalink
Browse files

fix check for updates

  • Loading branch information...
Manuel-777 committed Jul 4, 2019
1 parent 201b9bf commit 3f57d6dd0127f9cf4cb8c7df2ee6cd84ae204333
Showing with 8 additions and 1 deletion.
  1. +8 −1 main.js
@@ -78,6 +78,7 @@ app.on("ready", () => {
});

function startUpdater() {
if (!app.isPackaged) return;
updaterWindow = createUpdaterWindow();

updaterWindow.webContents.on("did-finish-load", function() {
@@ -123,7 +124,13 @@ function installUpdate() {
let appStarted = false;

function startApp() {
if (appStarted) return;
if (appStarted) {
if (updaterWindow) {
updaterWindow.destroy();
updaterWindow = undefined;
}
return;
}
mainWindow = createMainWindow();
background = createBackgroundWindow();
setBackground(background);

0 comments on commit 3f57d6d

Please sign in to comment.
You can’t perform that action at this time.