Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
luuxis committed Mar 31, 2024
1 parent 59a2d13 commit de7da45
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
})

Expand All @@ -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);
})
Expand Down

0 comments on commit de7da45

Please sign in to comment.