mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 17:26:34 +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
|
// otherwise Windows throws EPERM
|
||||||
DriveScannerService.stop();
|
DriveScannerService.stop();
|
||||||
|
|
||||||
|
const iconPath = '../../assets/icon.png';
|
||||||
|
|
||||||
ImageWriterService.flash(image.path, drive).then(() => {
|
ImageWriterService.flash(image.path, drive).then(() => {
|
||||||
if (!flashState.wasLastFlashCancelled()) {
|
if (!flashState.wasLastFlashCancelled()) {
|
||||||
notification.send('Success!', {
|
notification.send('Success!', {
|
||||||
@ -67,7 +69,7 @@ module.exports = function(
|
|||||||
imageBasename: path.basename(image.path),
|
imageBasename: path.basename(image.path),
|
||||||
drive
|
drive
|
||||||
}),
|
}),
|
||||||
icon: '../../../../../assets/icon.png'
|
icon: iconPath
|
||||||
});
|
});
|
||||||
$state.go('success');
|
$state.go('success');
|
||||||
}
|
}
|
||||||
@ -78,7 +80,7 @@ module.exports = function(
|
|||||||
imageBasename: path.basename(image.path),
|
imageBasename: path.basename(image.path),
|
||||||
drive
|
drive
|
||||||
}),
|
}),
|
||||||
icon: '../../../../../assets/icon.png'
|
icon: iconPath
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: All these error codes to messages translations
|
// TODO: All these error codes to messages translations
|
||||||
|
Loading…
x
Reference in New Issue
Block a user