From 124988382d23bfbc4074994e3fbe21ddf43da171 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Thu, 4 Oct 2018 19:37:24 -0300 Subject: [PATCH] Show downloaded version on update --- app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index fd174c4f..f834169b 100644 --- a/app.js +++ b/app.js @@ -43,7 +43,8 @@ ipc.on('autoUpdater:update-available', function() { ,buttons: Ext.Msg.OK }); }); -ipc.on('autoUpdater:update-downloaded', function(version, files, path, sha512, releaseName, releaseNotes, releaseDate, stagingPercentage) { +ipc.on('autoUpdater:update-downloaded', function(e, info) { + console.log('Update downloaded!', info); Ext.cq1('app-main').addDocked({ xtype: 'toolbar' ,dock: 'top' @@ -52,7 +53,7 @@ ipc.on('autoUpdater:update-downloaded', function(version, files, path, sha512, r '->' ,{ xtype: 'label' - ,html: 'New version ready to install ('+releaseName+')! It will be installed the next time Rambox is relaunched.' + ,html: 'New version ready to install ('+info.version+')! It will be installed the next time Rambox is relaunched.' } ,{ xtype: 'button' @@ -63,7 +64,7 @@ ipc.on('autoUpdater:update-downloaded', function(version, files, path, sha512, r xtype: 'button' ,text: 'Changelog' ,ui: 'decline' - ,href: 'https://github.com/ramboxapp/community-edition/releases/tag/'+releaseName + ,href: 'https://github.com/ramboxapp/community-edition/releases/tag/'+info.version } ,'->' ,{