diff --git a/src/assets/js/index.js b/src/assets/js/index.js index 9c59b3d72..ecfcf739f 100644 --- a/src/assets/js/index.js +++ b/src/assets/js/index.js @@ -59,7 +59,10 @@ class Splash { ipcRenderer.on('updateAvailable', () => { this.setStatus(`Mise à jour disponible !`); - if (os.platform() == 'win32') ipcRenderer.send('start-update'); + if (os.platform() == 'win32') { + this.toggleProgress(); + ipcRenderer.send('start-update'); + } else return this.dowloadUpdate(); }) @@ -68,7 +71,6 @@ class Splash { }) ipcRenderer.on('download-progress', (event, progress) => { - this.toggleProgress(); ipcRenderer.send('update-window-progress', { progress: progress.transferred, size: progress.total }) this.setProgress(progress.transferred, progress.total); })