mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
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
This commit is contained in:
parent
296a554637
commit
ee3c146785
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user