From ee3c146785d26274f1b971323be7d55e910f11da Mon Sep 17 00:00:00 2001 From: Benedict Aas Date: Thu, 1 Jun 2017 22:07:12 +0100 Subject: [PATCH] fix(GUI): correct relative notification icon path (#1470) We update the relative icon path to the correct relative path containing the Etcher icon. See: https://github.com/resin-io/etcher/issues/1443 --- lib/gui/pages/main/controllers/flash.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/gui/pages/main/controllers/flash.js b/lib/gui/pages/main/controllers/flash.js index 1333fd7b..f10e4eb8 100644 --- a/lib/gui/pages/main/controllers/flash.js +++ b/lib/gui/pages/main/controllers/flash.js @@ -60,6 +60,8 @@ module.exports = function( // otherwise Windows throws EPERM DriveScannerService.stop(); + const iconPath = '../../assets/icon.png'; + ImageWriterService.flash(image.path, drive).then(() => { if (!flashState.wasLastFlashCancelled()) { notification.send('Success!', { @@ -67,7 +69,7 @@ module.exports = function( imageBasename: path.basename(image.path), drive }), - icon: '../../../../../assets/icon.png' + icon: iconPath }); $state.go('success'); } @@ -78,7 +80,7 @@ module.exports = function( imageBasename: path.basename(image.path), drive }), - icon: '../../../../../assets/icon.png' + icon: iconPath }); // TODO: All these error codes to messages translations